Merge pull request #304 from rwfowler/asciidocLinksWithTravis

Disable internal link processing for asciidoc
This commit is contained in:
Corey Donohoe
2012-05-01 16:10:51 -07:00
3 changed files with 18 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