Disable internal link processing for asciidoc

asciidoc's representation of section identifiers interferes with
Gollum's page linking. This disables Gollum's page link tag
extraction for asciidoc files.

Adds "apt-get install -y asciidoc" to .travis.yml so tests pass
on @travis-ci.
This commit is contained in:
Ryan Fowler
2012-05-01 11:43:27 -05:00
parent 9dba3f9c58
commit d1cf698b45
3 changed files with 18 additions and 0 deletions
+3
View File
@@ -116,6 +116,9 @@ 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}"