Closed rbairwell closed 5 years ago
Thanks for the test.
I can bypass the bug with 'Third [^[1]^](https://example.com) link'
which outputs <p>Third <a href="https://example.com"><sup>[1]</sup></a> link</p>
But I agree that we should fix that
This is now fixed in 2.x branch
Using commonmark-sup-sub-extensions 1.1.0 and commonmark 0.18.3 , the following test case:
incorrectly escapes the [1] in the link when it is surrounded by the ^ markers.
Here's the output:
I expected:
(i.e. square brackets on the third without escaping).
Tested against https://stackedit.io/app# with: