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.
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user