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

fix(markdown-links): Allowing for escaped square brackets in markdown links #74

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

markscamilleri
Copy link
Contributor

This PR should fix #56

Problem

When a markdown link had escaped square brackets, the regex was not identifying that as being part of the markdown link. So a link such as [\[This\] is a Logseq page](https://logseq.com) was not being recgnized as a markdown link.

Solution

Set the Regex to also accept \\\[ and \\\] which resolve to \[ and \] respectively.

@sawhney17 sawhney17 merged commit 4abbe6d into sawhney17:main Feb 8, 2024
1 check passed
@markscamilleri markscamilleri deleted the bugfix-markdown-link branch February 8, 2024 17:25
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 this pull request may close these issues.

Do not create automatic link inside a Markdown link
2 participants