[GH-ISSUE #1152] MD051 false positive ## $\LaTeX$ hooks[latex hooks](#latex-hooks) #2474

Closed
opened 2026-03-07 20:08:05 +03:00 by kerem · 1 comment
Owner

Originally created by @randolf-scholz on GitHub (Mar 13, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1152

Example markdown

# custom pre-commit hooks

[latex hooks](#latex-hooks)

## $\LaTeX$ Hooks

Linking works without a problem.

Originally created by @randolf-scholz on GitHub (Mar 13, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1152 Example markdown ```markdown # custom pre-commit hooks [latex hooks](#latex-hooks) ## $\LaTeX$ Hooks ``` Linking works without a problem.
kerem 2026-03-07 20:08:05 +03:00
Author
Owner

@DavidAnson commented on GitHub (Mar 13, 2024):

The use of math syntax in the heading text seems to be interfering. I'll have a look soon.

https://dlaa.me/markdownlint/#%25m%23%20custom%20pre-commit%20hooks%0A%0A%5Blatex%20hooks%5D(%23latex-hooks)%0A%0A%23%23%20%24%5CLaTeX%24%20Hooks%0A

<!-- gh-comment-id:1994632928 --> @DavidAnson commented on GitHub (Mar 13, 2024): The use of math syntax in the heading text seems to be interfering. I'll have a look soon. https://dlaa.me/markdownlint/#%25m%23%20custom%20pre-commit%20hooks%0A%0A%5Blatex%20hooks%5D(%23latex-hooks)%0A%0A%23%23%20%24%5CLaTeX%24%20Hooks%0A
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2474
No description provided.