lib/reverse_adoc/converters/hr.rb in reverse_adoc-0.3.7 vs lib/reverse_adoc/converters/hr.rb in reverse_adoc-1.0.0
- old
+ new
@@ -1,9 +1,13 @@
module ReverseAdoc
module Converters
class Hr < Base
+ def to_coradoc(_node, _state = {})
+ Coradoc::Element::Break::ThematicBreak.new
+ end
+
def convert(node, state = {})
- "\n* * *\n"
+ Coradoc::Generator.gen_adoc(to_coradoc(node, state))
end
end
register :hr, Hr.new
end