Browse files

Use github-markdown if it's available.

  • Loading branch information...
1 parent 2a749e4 commit b865add2e053f8cea3d7f4d9dcba001bdfd78994 @benburkert benburkert committed Apr 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/github/markups.rb
@@ -1,6 +1,9 @@
MD_FILES = /md|mkdn?|mdown|markdown/
-if markup(:redcarpet, MD_FILES) do |content|
+if markup('github/markdown', MD_FILES) do |content|
+ GitHub::Markdown.render(content)
+ end
+elsif markup(:redcarpet, MD_FILES) do |content|
elsif markup(:rdiscount, MD_FILES) do |content|

2 comments on commit b865add

Is github/markdown publicly available?

It doesn’t look like it; it’s not on the github account. Their project github-flavored-markdown is only for JavaScript.

Please sign in to comment.