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

Don't match single line Code Blocks #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hudsonm62
Copy link

This ignores changes to single lined code fences/blocks by prefixing the expression to the existing regex: (?!.+`+)

`[ill-be-ignored](link.md)`

```[ill-also-be-ignored](link.md)```

```markdown
[i-wont-be-ignored-still-sadly](image.png)
```

[ill-be-ignored](link.md)

[ill-also-be-ignored](link.md)

[i-wont-be-ignored-still-sadly](image.png)

Note

  • an escape \ was prefixed onto the link fragment # in b2cec2a
  • while it's still not the ideal solution, this could be used in the interim until someone smarter than me figures out multi-line blocks :P

sorts out single line code fences/blocks for now, this is a start but still need a solution for code-blocks all together though 😢 - zachhannum#1
https://regex101.com/r/RK0yq1/1
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.

1 participant