bpruitt-goddard / vscode-mermaid-syntax-highlight

Markdown syntax support for the Mermaid charting language
MIT License
98 stars 37 forks source link

Using html tags in text on links breaks the syntax highlighting #98

Closed dongwook-chan closed 7 months ago

dongwook-chan commented 1 year ago

Adding html tags on links breaks the following markdown syntax highlighting.

graph TB;
    A--a-->B
    B--"<b>[b]</b>\nb"-->C

Before adding mermaid

image

After adding mermaid

image

tymokvo commented 1 year ago

I think I am experiencing this same issue, but it seems to be with strings that match the regex: (?<=\w)>

Highlighting broken: image

Highlighting correct: image

image

image

bpruitt-goddard commented 7 months ago

Fixed with the linked PR and deployed with version 1.6.1.