Class: ReverseMarkdown::Converters::Pre
- Defined in:
- lib/reverse_markdown/converters/pre.rb
Instance Method Summary collapse
Methods inherited from Base
#escape_keychars, #extract_title, #treat, #treat_children
Instance Method Details
#convert(node) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/reverse_markdown/converters/pre.rb', line 6 def convert(node) if ReverseMarkdown.config.github_flavored "```\n" << node.text.strip << "\n```\n" else "\n\n " << node.text.strip.lines.to_a.join(" ") << "\n\n" end end |