Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render RMarkdown (.rmd) as Markdown #343

Merged
merged 1 commit into from
Sep 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/github/markup/markdown.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/markup_test.rb
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions test/markups/README.rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Title
* One
* Two
6 changes: 6 additions & 0 deletions test/markups/README.rmd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h1>Title</h1>

<ul>
<li>One</li>
<li>Two</li>
</ul>