Disable internal link processing for asciidoc

asciidoc's representation of section identifiers interferes with
Gollum's page linking. This disables Gollum's page link tag
extraction for asciidoc files.
This commit is contained in:
Ryan Fowler
2012-05-01 11:43:27 -05:00
parent b7fb4c5950
commit f73c925ad9
2 changed files with 16 additions and 0 deletions
+13
View File
@@ -588,6 +588,19 @@ np.array([[2,2],[1,3]],np.float)
compare(content, output, 'md')
end
#########################################################################
# Asciidoc
#########################################################################
test "asciidoc header" do
compare("= Book Title\n\n== Heading", '<div class="sect1"><h2 id="wiki-_heading">Heading</h2><div class="sectionbody"></div></div>', 'asciidoc')
end
test "internal links with asciidoc" do
compare("= Book Title\n\n[[anid]]\n== Heading", '<div class="sect1"><h2 id="wiki-anid">Heading</h2><div class="sectionbody"></div></div>', 'asciidoc')
end
#########################################################################
#
# Helpers