Add content to link title attributes

This commit is contained in:
Corinne Durrmeyer 2024-07-22 17:11:32 +02:00
parent e79a3b6aa2
commit 54a32a2e97
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -18,7 +18,7 @@ module Redcarpet
}
unless href.starts_with?('/')
html_options.merge!(title: new_tab_suffix(title), **external_link_attributes)
html_options.merge!(title: new_tab_suffix(content), **external_link_attributes)
end
content_tag(:a, content, html_options, false)