Skip to content

Commit

Permalink
Added additional separators in tooltip patterns (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
HofiOne authored May 8, 2024
2 parents 88988f9 + 37b9dec commit 47ea50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _plugins/generate_tooltips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def process_markdown_parts(page, markdown)

# Search for known link titles
# NOTE: Using multi line matching here will not help either if the pattern itself is in the middle broken/spaned to multiple lines, so using whitespace replacements now inside the patter to handle this, see above!
full_pattern = /(^|[\s.,;:&'(])(#{pattern})([\s.,;:&')]|\z)(?![^<]*?<\/a>)/
full_pattern = /(^|[\s.,;:&'"\-(])(#{pattern})([\s.,;:&'"\-)]|\z)(?![^<]*?<\/a>)/
markdown_part = process_markdown_part(page, markdown_part, page_links, full_pattern, id, url, needs_tooltip, true)
else
# Content inside of special Markdown blocks
Expand Down

0 comments on commit 47ea50a

Please sign in to comment.