joplin-plugin-enhancement
joplin-plugin-enhancement copied to clipboard
In-line links trip up on in-line code with square brackets
Problem
Incorrect rendering in markdown editor with Enable inline link, image, and footnote rendering in markdown editor enabled:
[`[Math]::Sqrt`](https://msdn.microsoft.com/library/system.math.sqrt)
Expected result
Actual result
Oh, apparently similar problems occur when using HTML tags and when using escaped square brackets:
Example 1
[\[1\]](https://msdn.microsoft.com/library/system.math.sqrt)
Example 2
[<sup>\[1\]</sup>](https://msdn.microsoft.com/library/system.math.sqrt)
Example 3
[<sup>[1]</sup>](https://msdn.microsoft.com/library/system.math.sqrt)
This is because the 'xxx' part in the link [xxx] is currently manually parsed and rendered, which is why many formats are not supported, affecting not only inline links but also blocks. Later on, it might be necessary to switch to rendering through markdown-it.