class ReverseAsciidoctor::Converters::P
Public Instance Methods
convert(node, state = {})
click to toggle source
# File lib/reverse_asciidoctor/converters/p.rb, line 4 def convert(node, state = {}) id = node['id'] anchor = id ? "[[#{id}]]\n" : "" if state[:tdsinglepara] "#{anchor}" << treat_children(node, state).strip else "\n\n#{anchor}" << treat_children(node, state).strip << "\n\n" end end