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

Wrong rendering of link labels containing [square brackets] #514

Closed
ViktorSviridenko opened this issue Aug 29, 2023 · 0 comments · Fixed by #551
Closed

Wrong rendering of link labels containing [square brackets] #514

ViktorSviridenko opened this issue Aug 29, 2023 · 0 comments · Fixed by #551

Comments

@ViktorSviridenko
Copy link

ViktorSviridenko commented Aug 29, 2023

Description

In our project, markdown-to-jsx renders most of the user content, so it's one of the essential libraries.

We faced a problem when we were trying to mark up a page using "footnotes" (like in articles on Wikipedia).

Steps to reproduce

  1. Open the official playground;
  2. Copy and paste the following code snippet.
You can find it on [Google<sup>[1]</sup>](https://google.com).

You can find it on [Google [1]](https://google.com).

1. Google is the world's largest search engine.

Demonstration and comparison with VS Code

image

Additional notes

The error didn't occur in markdown-to-jsx@7.1.9.

@ViktorSviridenko ViktorSviridenko changed the title Wrong rendering of links which labels contain [square brackets] Wrong rendering of link labels containing [square brackets] Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant