id attribute transformers should always return a hash or nil
This commit is contained in:
@@ -63,6 +63,8 @@ module Gollum
|
||||
return unless node['href']
|
||||
prefix = env[:config][:id_prefix]
|
||||
node['href'] = node['href'].gsub(/\A\#(#{prefix})?/, '#'+prefix)
|
||||
|
||||
{:node_whitelist => [node]}
|
||||
end
|
||||
].freeze
|
||||
|
||||
|
||||
Reference in New Issue
Block a user