Skip to content

Commit

Permalink
Merge pull request #1235 from github/revert-343-render-rmd-as-markdown
Browse files Browse the repository at this point in the history
don't render rmd as markdown
  • Loading branch information
Ashe Connor authored Oct 14, 2018
2 parents 56a5850 + b88d561 commit 048ca72
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/github/markup/markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Markdown < Implementation

def initialize
super(
/md|rmd|mkdn?|mdwn|mdown|markdown|litcoffee/i,
/md|mkdn?|mdwn|mdown|markdown|litcoffee/i,
["Markdown", "RMarkdown", "Literate CoffeeScript"])
end

Expand Down
4 changes: 1 addition & 3 deletions test/markup_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: UTF-8
# encoding: utf-8

$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"

Expand Down Expand Up @@ -78,8 +78,6 @@ def call
def test_knows_what_it_can_and_cannot_render
assert_equal false, GitHub::Markup.can_render?('README.html', '<h1>Title</h1>')
assert_equal true, GitHub::Markup.can_render?('README.markdown', '=== Title')
assert_equal true, GitHub::Markup.can_render?('README.rmd', '=== Title')
assert_equal true, GitHub::Markup.can_render?('README.Rmd', '=== Title')
assert_equal false, GitHub::Markup.can_render?('README.cmd', 'echo 1')
assert_equal true, GitHub::Markup.can_render?('README.litcoffee', 'Title')
end
Expand Down
3 changes: 0 additions & 3 deletions test/markups/README.rmd

This file was deleted.

6 changes: 0 additions & 6 deletions test/markups/README.rmd.html

This file was deleted.

0 comments on commit 048ca72

Please sign in to comment.