Class: TipTap::Nodes::HorizontalRule
Instance Attribute Summary
#output_buffer
Attributes included from HasContent
#attrs, #content
Instance Method Summary
collapse
#to_plain_text
#to_h
#html_attributes, #html_class_name, #html_tag, included, #inline_styles
Methods included from HasContent
#add_content, #blank?, #each, #find_node, included, #initialize, #size
included, #type_name
Instance Method Details
#include_empty_content_in_json? ⇒ Boolean
10
11
12
|
# File 'lib/tip_tap/nodes/horizontal_rule.rb', line 10
def include_empty_content_in_json?
false
end
|
#to_html ⇒ Object
14
15
16
|
# File 'lib/tip_tap/nodes/horizontal_rule.rb', line 14
def to_html
tag.hr
end
|
#to_markdown(context = Markdown::Context.root) ⇒ Object
18
19
20
|
# File 'lib/tip_tap/nodes/horizontal_rule.rb', line 18
def to_markdown(context = Markdown::Context.root)
"---"
end
|