Merge remote-tracking branch 'jussimalinen/fix-rest-local-links'

This commit is contained in:
Corey Donohoe
2012-04-25 17:00:56 +02:00
2 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ module Gollum
'compact', 'coords', 'datetime', 'dir', 'compact', 'coords', 'datetime', 'dir',
'disabled', 'enctype', 'for', 'frame', 'disabled', 'enctype', 'for', 'frame',
'headers', 'height', 'hreflang', 'headers', 'height', 'hreflang',
'hspace', 'ismap', 'label', 'lang', 'hspace', 'id', 'ismap', 'label', 'lang',
'longdesc', 'maxlength', 'media', 'method', 'longdesc', 'maxlength', 'media', 'method',
'multiple', 'name', 'nohref', 'noshade', 'multiple', 'name', 'nohref', 'noshade',
'nowrap', 'prompt', 'readonly', 'rel', 'rev', 'nowrap', 'prompt', 'readonly', 'rel', 'rev',
+21 -21
View File
@@ -546,29 +546,29 @@ np.array([[2,2],[1,3]],np.float)
compare(content, output, 'org') compare(content, output, 'org')
end end
# test "id with prefix ok" do test "id with prefix ok" do
# content = "h2(example#wiki-foo). xxxx" content = "h2(example#wiki-foo). xxxx"
# output = %(<h2 class="example" id="wiki-foo">xxxx</h2>) output = %(<h2 class="example" id="wiki-foo">xxxx</h2>)
# compare(content, output, :textile) compare(content, output, :textile)
# end end
# test "id prefix added" do test "id prefix added" do
# content = "h2(#foo). xxxx[1]\n\nfn1.footnote" content = "h2(#foo). xxxx[1]\n\nfn1.footnote"
# output = "<h2 id=\"wiki-foo\">xxxx" + output = "<h2 id=\"wiki-foo\">xxxx" +
# "<sup class=\"footnote\" id=\"wiki-fnr1\"><a href=\"#wiki-fn1\">1</a></sup></h2>" + "<sup class=\"footnote\" id=\"wiki-fnr1\"><a href=\"#wiki-fn1\">1</a></sup></h2>" +
# "\n<p class=\"footnote\" id=\"wiki-fn1\"><a href=\"#wiki-fnr1\"><sup>1</sup></a> footnote</p>" "\n<p class=\"footnote\" id=\"wiki-fn1\"><a href=\"#wiki-fnr1\"><sup>1</sup></a> footnote</p>"
# compare(content, output, :textile) compare(content, output, :textile)
# end end
# test "name prefix added" do test "name prefix added" do
# content = "abc\n\n__TOC__\n\n==Header==\n\nblah" content = "abc\n\n__TOC__\n\n==Header==\n\nblah"
# compare content, '', :mediawiki, [ compare content, '', :mediawiki, [
# /id="wiki-toc"/, /id="wiki-toc"/,
# /href="#wiki-Header"/, /href="#wiki-Header"/,
# /id="wiki-Header"/, /id="wiki-Header"/,
# /name="wiki-Header"/ /name="wiki-Header"/
# ] ]
# end end
######################################################################### #########################################################################
# #