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

[BUG] Does not handle nested brackets correctly #2037

Open
CxRes opened this issue Aug 20, 2024 · 0 comments
Open

[BUG] Does not handle nested brackets correctly #2037

CxRes opened this issue Aug 20, 2024 · 0 comments
Assignees
Labels

Comments

@CxRes
Copy link

CxRes commented Aug 20, 2024

Describe the bug
When nesting full reference links in square brackets, the parser incorrectly processes the outer bracket.

Environment

  • OS: Windows 10 x64
  • VSCode: 1.92.2
  • Markdown Preview Enhanced: 0.8.13

To Reproduce
Steps to reproduce the behavior:

  1. Type [[foo][bar]]
  2. Define [bar]: /url
  3. Output is:
    <p><a href="/path/to/file/foo][bar.md">foo][bar</a></p>

Expected behavior

Output should be:

<p>[<a href="/url">foo</a>]</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants