all repos — markup @ b865add2e053f8cea3d7f4d9dcba001bdfd78994

The code we use to render README.your_favorite_markup

Use github-markdown if it's available.
Ben Burkert ben@benburkert.com
Thu, 05 Apr 2012 13:07:41 -0700
commit

b865add2e053f8cea3d7f4d9dcba001bdfd78994

parent

2a749e4356556cd275325de419fcf1ef755da70e

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

jump to
M lib/github/markups.rblib/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|