Class: Typedown2Blog::HtmlTagsInText

Inherits:
BlogFormatter show all
Defined in:
lib/typedown2blog/formatters.rb

Instance Method Summary collapse

Methods inherited from BlogFormatter

#initialize

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