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

Incorrect parsing of inline link #1006

Open
romainjudic opened this issue Apr 23, 2024 · 0 comments
Open

Incorrect parsing of inline link #1006

romainjudic opened this issue Apr 23, 2024 · 0 comments

Comments

@romainjudic
Copy link

Description:
Inline link is detected even when there is a space between square brackets and parentheses.

The pattern for inline links is [link text](link): the left square bracket and the left parentheses are next to each other, without white space between them.

It turns out that adding a white space in between still results in an inline link, but it should not.

Input:

[some] (text)

Expected output:

<p>[some] (text)</p>

Actual output:

<p><a href="text">some</a></p>
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

No branches or pull requests

1 participant