Open q0rban opened 6 years ago
It seems that this is matching all links whether they start at the beginning of the line or not. Here's the regex in use:
/\[(?=((?:[^\]]|\\.)*))\1\]\((?=((?:[^\)]|\\.)*))\2\)/gm
Seems like a simple fix would be:
/^\[(?=((?:[^\]]|\\.)*))\1\]\((?=((?:[^\)]|\\.)*))\2\)/gm
This is related to #65. Another fix that would resolve both issues, and increase the performance of the plugin:
/^\[(?=(import|include(?:[^\]]|\\.)*))\1\]\((?=((?:[^\)]|\\.)*))\2\)/gm
It seems that this is matching all links whether they start at the beginning of the line or not. Here's the regex in use:
Seems like a simple fix would be:
This is related to #65. Another fix that would resolve both issues, and increase the performance of the plugin: