Class: Coradoc::Input::Html::Converters::Hr
- Defined in:
- lib/coradoc/html/input/converters/hr.rb
Instance Method Summary collapse
Methods inherited from Base
#convert, #escape_text, #extract_leading_trailing_whitespace, #extract_title, #node_has_ancestor?, #textnode_after_start_with?, #textnode_before_end_with?, #treat, #treat_children, #treat_children_coradoc, #treat_coradoc, #unconstrained_after?, #unconstrained_before?
Instance Method Details
#to_coradoc(_node, _state = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/coradoc/html/input/converters/hr.rb', line 8 def to_coradoc(_node, _state = {}) Coradoc::CoreModel::Block.new( element_type: 'thematic_break', block_semantic_type: :horizontal_rule ) end |