From 9dba3f9c58344db4e28aa9ce19fe9c79683cf61e Mon Sep 17 00:00:00 2001 From: Corey Donohoe Date: Tue, 1 May 2012 19:51:05 +0200 Subject: [PATCH] Revert "Merge pull request #303 from rwfowler/asciidocLinks" This reverts commit 8fbbe403000cc534b980870534981fb8c199a85b, reversing changes made to b7fb4c59500eb5ea68e45537795fb5378804d20f. --- lib/gollum/markup.rb | 3 --- test/test_markup.rb | 13 ------------- 2 files changed, 16 deletions(-) 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