Permalink
Browse files

id attribute transformers should always return a hash or nil

  • Loading branch information...
1 parent c47a47b commit b2d372ab3c29c09a11dfcd1a0e147589312b569d @technoweenie technoweenie committed Jul 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/gollum/sanitization.rb
@@ -63,6 +63,8 @@ class Sanitization
return unless node['href']
prefix = env[:config][:id_prefix]
node['href'] = node['href'].gsub(/\A\#(#{prefix})?/, '#'+prefix)
+
+ {:node_whitelist => [node]}
end
].freeze

0 comments on commit b2d372a

Please sign in to comment.