class Apiculture::AppDocumentation::TaggedMarkdown

Public Instance Methods

render_markdown(s) click to toggle source
# File lib/apiculture/app_documentation.rb, line 14
def render_markdown(s)
  GitHub::Markup.render('section.markdown', s.to_s)
end
to_html() click to toggle source
# File lib/apiculture/app_documentation.rb, line 10
def to_html
  '<section class="%s">%s</section>' % [Rack::Utils.escape_html(section_class), render_markdown(to_markdown)]
end
to_markdown() click to toggle source
# File lib/apiculture/app_documentation.rb, line 6
def to_markdown
  string.to_markdown.to_s rescue string.to_s
end