diff --git a/lib/github/markup/markdown.rb b/lib/github/markup/markdown.rb index f4ef99dc..07f7ff87 100644 --- a/lib/github/markup/markdown.rb +++ b/lib/github/markup/markdown.rb @@ -25,7 +25,7 @@ class Markdown < Implementation } def initialize - super(/md|mkdn?|mdwn|mdown|markdown|litcoffee/) + super(/md|rmd|mkdn?|mdwn|mdown|markdown|litcoffee/) end def load diff --git a/test/markup_test.rb b/test/markup_test.rb index b9070b1a..cc7f74bf 100644 --- a/test/markup_test.rb +++ b/test/markup_test.rb @@ -35,6 +35,7 @@ class MarkupTest < Test::Unit::TestCase def test_knows_what_it_can_and_cannot_render assert_equal false, GitHub::Markup.can_render?('README.html') assert_equal true, GitHub::Markup.can_render?('README.markdown') + assert_equal true, GitHub::Markup.can_render?('README.rmd') assert_equal false, GitHub::Markup.can_render?('README.cmd') assert_equal true, GitHub::Markup.can_render?('README.litcoffee') end diff --git a/test/markups/README.rmd b/test/markups/README.rmd new file mode 100644 index 00000000..f9f5f702 --- /dev/null +++ b/test/markups/README.rmd @@ -0,0 +1,3 @@ +# Title +* One +* Two diff --git a/test/markups/README.rmd.html b/test/markups/README.rmd.html new file mode 100644 index 00000000..e712d1c7 --- /dev/null +++ b/test/markups/README.rmd.html @@ -0,0 +1,6 @@ +

Title

+ +