all repos — markup @ 425f4aa10e53461773a715b4e6681421cd415dfe

The code we use to render README.your_favorite_markup

add .litcoffee to the list of Markdown file extensions
Coby Chapple coby@cobychapple.com
Fri, 05 Apr 2013 13:24:27 +0100
commit

425f4aa10e53461773a715b4e6681421cd415dfe

parent

bfd4687f4b7ee187780414778a8f3ac985fc246d

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M lib/github/markups.rblib/github/markups.rb

@@ -1,17 +1,17 @@

-MD_FILES = /md|mkdn?|mdwn|mdown|markdown/ +MD_FILES = /md|mkdn?|mdwn|mdown|markdown|litcoffee/ 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 + end elsif markup(:rdiscount, MD_FILES) do |content| RDiscount.new(content).to_html - end + end elsif markup(:maruku, MD_FILES) do |content| Maruku.new(content).to_html - end + end elsif markup(:kramdown, MD_FILES) do |content| Kramdown::Document.new(content).to_html end