Use github-markdown if it's available.
Ben Burkert ben@benburkert.com
Thu, 05 Apr 2012 13:07:41 -0700
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
lib/github/markups.rb
→
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| RedcarpetCompat.new(content).to_html end elsif markup(:rdiscount, MD_FILES) do |content|