class Stepmod::Utils::Converters::P

Public Instance Methods

convert(node, state = {}) click to toggle source
# File lib/stepmod/utils/converters/p.rb, line 7
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