githubmarkdownredcarpet

How can I convert github flavored markdown to HTML?


I know github has released the Redcarpet gem for converting markdown to HTML but as far as I have seen it doesn't support (or recognize) Github flavored markdown such as

javascript var x = 1;

Anyone know if there is a gem (or some way with redcarpet) to handle the github flavored syntax, specifically I am interested in the syntax highlighting.

Thanks.


Solution

  • Now better to use github-markdown gem.

    GitHub::Markdown.render(content)