diff options
Diffstat (limited to 'lib/banzai/filter/references/abstract_reference_filter.rb')
-rw-r--r-- | lib/banzai/filter/references/abstract_reference_filter.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/banzai/filter/references/abstract_reference_filter.rb b/lib/banzai/filter/references/abstract_reference_filter.rb index 1ca38d2612d..3e48fe33b03 100644 --- a/lib/banzai/filter/references/abstract_reference_filter.rb +++ b/lib/banzai/filter/references/abstract_reference_filter.rb @@ -202,9 +202,13 @@ module Banzai title = object_link_title(object, matches) klass = reference_class(object_sym) - data_attributes = data_attributes_for(link_content || match, parent, object, - link_content: !!link_content, - link_reference: link_reference) + data_attributes = data_attributes_for( + link_content || match, + parent, + object, + link_content: !!link_content, + link_reference: link_reference + ) data_attributes[:reference_format] = matches[:format] if matches.names.include?("format") data_attributes.merge!(additional_object_attributes(object)) |