Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
The default behavior prevented linking to header anchors. id_prefix
can still be set to 'wiki-' however it is no longer the default.
  • Loading branch information
bootstraponline committed Nov 17, 2012
1 parent be1883f commit 8008883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gollum/sanitization.rb
Expand Up @@ -105,7 +105,7 @@ class Sanitization
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.
Expand All @@ -128,7 +128,7 @@ def initialize
@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


Expand Down

0 comments on commit 8008883

Please sign in to comment.