Class: Typedown2Blog::HtmlTagsInText
- Inherits:
-
BlogFormatter
- Object
- BlogFormatter
- Typedown2Blog::HtmlTagsInText
- Defined in:
- lib/typedown2blog/formatters.rb
Instance Method Summary collapse
Methods inherited from BlogFormatter
Constructor Details
This class inherits a constructor from Typedown2Blog::BlogFormatter
Instance Method Details
#format_body(typedown) ⇒ Object
16 17 18 19 20 |
# File 'lib/typedown2blog/formatters.rb', line 16 def format_body typedown doc = Typedown::Section.sectionize(typedown) body = "#{doc.body.to_html}\n\n" [ doc.title, body, "text/plain" ] end |