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
|
attr_reader :transformers
|
||||||
|
|
||||||
# Gets or sets a String prefix which is added to ID attributes.
|
# Gets or sets a String prefix which is added to ID attributes.
|
||||||
# Default: 'wiki-'
|
# Default: ''
|
||||||
attr_accessor :id_prefix
|
attr_accessor :id_prefix
|
||||||
|
|
||||||
# Gets a Hash describing HTML attributes that Sanitize should add.
|
# Gets a Hash describing HTML attributes that Sanitize should add.
|
||||||
@@ -128,7 +128,7 @@ module Gollum
|
|||||||
@add_attributes = {}
|
@add_attributes = {}
|
||||||
@remove_contents = REMOVE_CONTENTS.dup
|
@remove_contents = REMOVE_CONTENTS.dup
|
||||||
@allow_comments = false
|
@allow_comments = false
|
||||||
@id_prefix = 'wiki-'
|
@id_prefix = ''
|
||||||
yield self if block_given?
|
yield self if block_given?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user