Skip to content

Commit 47ea50a

Browse files
authored
Added additional separators in tooltip patterns (#13)
2 parents 88988f9 + 37b9dec commit 47ea50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_plugins/generate_tooltips.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def process_markdown_parts(page, markdown)
126126

127127
# Search for known link titles
128128
# 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!
129-
full_pattern = /(^|[\s.,;:&'(])(#{pattern})([\s.,;:&')]|\z)(?![^<]*?<\/a>)/
129+
full_pattern = /(^|[\s.,;:&'"\-(])(#{pattern})([\s.,;:&'"\-)]|\z)(?![^<]*?<\/a>)/
130130
markdown_part = process_markdown_part(page, markdown_part, page_links, full_pattern, id, url, needs_tooltip, true)
131131
else
132132
# Content inside of special Markdown blocks

0 commit comments

Comments
 (0)