The default behavior prevented linking to header anchors. id_prefix
can still be set to 'wiki-' however it is no longer the default.
This commit is contained in:
bootstraponline
2012-11-16 17:45:56 -07:00
parent be1883f317
commit 80088832b9
+2 -2
View File
@@ -105,7 +105,7 @@ module Gollum
attr_reader :transformers
# Gets or sets a String prefix which is added to ID attributes.
# Default: 'wiki-'
# Default: ''
attr_accessor :id_prefix
# Gets a Hash describing HTML attributes that Sanitize should add.
@@ -128,7 +128,7 @@ module Gollum
@add_attributes = {}
@remove_contents = REMOVE_CONTENTS.dup
@allow_comments = false
@id_prefix = 'wiki-'
@id_prefix = ''
yield self if block_given?
end