diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 4a74d87b..bd857869 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -136,7 +136,7 @@ def markdown_hero_icon(text) end def markdown_ability_icon(text) - text.gsub /\[ability\s+([\p{L}\p{N}_:.\-\s]+)\]/ do + text.gsub /\[ability\s+([\p{L}\p{N}_:.\(\)\-\s]+)\]/ do begin ability_name = ERB::Util.html_escape($1.strip) ActionController::Base.helpers.image_tag(ability_name_to_icon_url(ability_name), height: 50, loading: "lazy", alt: $1)