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']
|
return unless node['href']
|
||||||
prefix = env[:config][:id_prefix]
|
prefix = env[:config][:id_prefix]
|
||||||
node['href'] = node['href'].gsub(/\A\#(#{prefix})?/, '#'+prefix)
|
node['href'] = node['href'].gsub(/\A\#(#{prefix})?/, '#'+prefix)
|
||||||
|
|
||||||
|
{:node_whitelist => [node]}
|
||||||
end
|
end
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user