Revert "Merge pull request #303 from rwfowler/asciidocLinks"

This reverts commit 8fbbe40300, reversing
changes made to b7fb4c5950.
This commit is contained in:
Corey Donohoe
2012-05-01 19:51:05 +02:00
parent 8fbbe40300
commit 9dba3f9c58
2 changed files with 0 additions and 16 deletions
-3
View File
@@ -116,9 +116,6 @@ module Gollum
#
# Returns the placeholder'd String data.
def extract_tags(data)
if @format == :asciidoc
return data
end
data.gsub!(/(.?)\[\[(.+?)\]\]([^\[]?)/m) do
if $1 == "'" && $3 != "'"
"[[#{$2}]]#{$3}"
-13
View File
@@ -588,19 +588,6 @@ 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