sawhney17 / logseq-automatic-linker

MIT License
87 stars 16 forks source link

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

Closed markscamilleri closed 4 months ago

markscamilleri commented 5 months ago

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.