Last Modified
2014-09-11 17:44:17 +0000
Requires
  • github/markdown.so

Description

GitHub Markdown Rendering class

Provides a Markdown rendering method as a singleton, and two auxiliary functions

There are two kinds of Markdown in GitHub.com:

GitHub::Markdown.render(content) #=> Rendered Markdown as HTML plaintext with the default extensions

GitHub::Markdown.render_gfm(content) #=> Rendered GitHub-flavored Markdown as HTML plaintext

GitHub::Markdown._to_html(content, mode) { |code, lang| ... } #=> Rendered Markdown with the given mode as HTML plaintext