Revert "Merge pull request #303 from rwfowler/asciidocLinks"
This reverts commit8fbbe40300, reversing changes made tob7fb4c5950.
This commit is contained in:
@@ -116,9 +116,6 @@ module Gollum
|
|||||||
#
|
#
|
||||||
# Returns the placeholder'd String data.
|
# Returns the placeholder'd String data.
|
||||||
def extract_tags(data)
|
def extract_tags(data)
|
||||||
if @format == :asciidoc
|
|
||||||
return data
|
|
||||||
end
|
|
||||||
data.gsub!(/(.?)\[\[(.+?)\]\]([^\[]?)/m) do
|
data.gsub!(/(.?)\[\[(.+?)\]\]([^\[]?)/m) do
|
||||||
if $1 == "'" && $3 != "'"
|
if $1 == "'" && $3 != "'"
|
||||||
"[[#{$2}]]#{$3}"
|
"[[#{$2}]]#{$3}"
|
||||||
|
|||||||
@@ -588,19 +588,6 @@ np.array([[2,2],[1,3]],np.float)
|
|||||||
compare(content, output, 'md')
|
compare(content, output, 'md')
|
||||||
end
|
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
|
# Helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user