-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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\)/gmSeems like a simple fix would be:
/^\[(?=((?:[^\]]|\\.)*))\1\]\((?=((?:[^\)]|\\.)*))\2\)/gmThis is related to #65. Another fix that would resolve both issues, and increase the performance of the plugin:
/^\[(?=(import|include(?:[^\]]|\\.)*))\1\]\((?=((?:[^\)]|\\.)*))\2\)/gmMetadata
Metadata
Assignees
Labels
No labels