Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-line links trip up on in-line code with square brackets #54

Open
God-damnit-all opened this issue Dec 18, 2023 · 2 comments
Open

In-line links trip up on in-line code with square brackets #54

God-damnit-all opened this issue Dec 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@God-damnit-all
Copy link

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

[Math]::Sqrt


Actual result

image

@God-damnit-all
Copy link
Author

God-damnit-all commented Dec 18, 2023

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)

image

Example 2

[<sup>\[1\]</sup>](https://msdn.microsoft.com/library/system.math.sqrt)

image

Example 3

[<sup>&lsqb;1&rsqb;</sup>](https://msdn.microsoft.com/library/system.math.sqrt)

image

@SeptemberHX SeptemberHX added the bug Something isn't working label Jan 18, 2024
@SeptemberHX
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants