Fix #587
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user