diff --git a/lib/gollum/markup.rb b/lib/gollum/markup.rb index b977bc58..97d15c7e 100644 --- a/lib/gollum/markup.rb +++ b/lib/gollum/markup.rb @@ -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}" diff --git a/test/test_markup.rb b/test/test_markup.rb index 1175201a..f9f176c3 100644 --- a/test/test_markup.rb +++ b/test/test_markup.rb @@ -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", '

Heading

', 'asciidoc') - end - - test "internal links with asciidoc" do - compare("= Book Title\n\n[[anid]]\n== Heading", '

Heading

', 'asciidoc') - end - - ######################################################################### # # Helpers