multiplatform-markdown-renderer icon indicating copy to clipboard operation
multiplatform-markdown-renderer copied to clipboard

Reference links parsing breaks [] text

Open nonproto opened this issue 1 year ago • 2 comments

Currently if I have a markdown text with double [] such as

[This should work][This is not a link] this is just text 

Yada yadada
The end

The library assumes it's a reference link when parsing causing the output to be wrong and it becomes a clickable link to nothing.

nonproto avatar Nov 30 '23 16:11 nonproto

Screenshot 2023-12-01 at 11 04 50

Not certain if that's something which may be handled wrong (or is supposed to be that way (?)) from the underlying markdown parsing library

https://github.com/JetBrains/markdown

mikepenz avatar Dec 01 '23 10:12 mikepenz

Yea I saw it was also getting tagged wrong(?). I don't know if other parsers like GitHub tag it then ignore it when there is no reference. Or what exactly.

I assumed the parsing was correct, and as attempted to check destination null and link label was not null. Then checking if the linkreferencehandler store had a valid entry however that isn't filled in until after the parsing.

nonproto avatar Dec 01 '23 12:12 nonproto