зеркало из https://github.com/github/markup.git
Merge pull request #1235 from github/revert-343-render-rmd-as-markdown
don't render rmd as markdown
This commit is contained in:
Коммит
048ca72b23
|
@ -29,7 +29,7 @@ module GitHub
|
|||
|
||||
def initialize
|
||||
super(
|
||||
/md|rmd|mkdn?|mdwn|mdown|markdown|litcoffee/i,
|
||||
/md|mkdn?|mdwn|mdown|markdown|litcoffee/i,
|
||||
["Markdown", "RMarkdown", "Literate CoffeeScript"])
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# encoding: UTF-8
|
||||
# encoding: utf-8
|
||||
|
||||
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
|
||||
|
||||
|
@ -78,8 +78,6 @@ message
|
|||
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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
# Title
|
||||
* One
|
||||
* Two
|
|
@ -1,6 +0,0 @@
|
|||
<h1>Title</h1>
|
||||
|
||||
<ul>
|
||||
<li>One</li>
|
||||
<li>Two</li>
|
||||
</ul>
|
Загрузка…
Ссылка в новой задаче