Browse files

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.
  • Loading branch information...
1 parent be1883f commit 80088832b98b29273ee53013f3905a99196cb0c9 @bootstraponline bootstraponline committed Nov 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gollum/sanitization.rb
View
4 lib/gollum/sanitization.rb
@@ -105,7 +105,7 @@ class Sanitization
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 @@ def initialize
@add_attributes = {}
@remove_contents = REMOVE_CONTENTS.dup
@allow_comments = false
- @id_prefix = 'wiki-'
+ @id_prefix = ''
yield self if block_given?
end

0 comments on commit 8008883

Please sign in to comment.