mkdocs-autolinks-plugin icon indicating copy to clipboard operation
mkdocs-autolinks-plugin copied to clipboard

Don't match single line Code Blocks

Open hudsonm62 opened this issue 4 months ago • 0 comments

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 b2cec2a21776b6a0bb58ecf943791bdc176902f8
  • 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

hudsonm62 avatar Apr 02 '24 11:04 hudsonm62