Fix bug with return value in abstract reference filter

When `object_class.link_reference_pattern` was `nil` because object
being processed do not implemement link references `call` method
returned `nil` instead of returning document, even if document has been
processed in for basic reference pattern.
This commit is contained in:
Grzegorz Bizon 2016-02-25 12:45:38 +01:00
parent acd877c73e
commit dbc7bf7fe1
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ module Banzai
object_link_filter(link, object_class.link_reference_pattern, link_text: text)
end
end
doc
end
# Replace references (like `!123` for merge requests) in text with links