[GH-ISSUE #1864] MD011/no-reversed-links false positive in LaTeX block #2611

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

Originally created by @benjaminion on GitHub (Nov 17, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1864

markdownlint v0.39.0

Source file

# An equation

$$
C = f(\omega^0)[L_0(s)]\cdots
$$

Result

> markdownlint-cli2 tmp.md 
markdownlint-cli2 v0.19.0 (markdownlint v0.39.0)
Finding: tmp.md
Linting: 1 file(s)
Summary: 1 error(s)
src/tmp.md:4:6 error MD011/no-reversed-links Reversed link syntax [(\omega^0)[L_0(s)]]

Comments

This might be expected - looking through the issue archive the support status for math blocks seems unclear. Nevertheless, it seems undesirable.

Originally created by @benjaminion on GitHub (Nov 17, 2025). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1864 markdownlint v0.39.0 ## Source file ``` # An equation $$ C = f(\omega^0)[L_0(s)]\cdots $$ ``` ## Result ``` > markdownlint-cli2 tmp.md markdownlint-cli2 v0.19.0 (markdownlint v0.39.0) Finding: tmp.md Linting: 1 file(s) Summary: 1 error(s) src/tmp.md:4:6 error MD011/no-reversed-links Reversed link syntax [(\omega^0)[L_0(s)]] ``` ## Comments This might be expected - looking through the issue archive the support status for math blocks seems unclear. Nevertheless, it seems undesirable.
kerem 2026-03-07 20:09:20 +03:00
Author
Owner

@DavidAnson commented on GitHub (Nov 17, 2025):

That syntax is recognized as a math block, so the violation within seems unexpected. I'll look into this soon.

https://dlaa.me/markdownlint/#%25m%23%20An%20equation%0A%0A%24%24%0AC%20%3D%20f(%5Comega%5E0)%5BL_0(s)%5D%5Ccdots%0A%24%24%0A

<!-- gh-comment-id:3543691975 --> @DavidAnson commented on GitHub (Nov 17, 2025): That syntax is recognized as a math block, so the violation within seems unexpected. I'll look into this soon. https://dlaa.me/markdownlint/#%25m%23%20An%20equation%0A%0A%24%24%0AC%20%3D%20f(%5Comega%5E0)%5BL_0(s)%5D%5Ccdots%0A%24%24%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#2611
No description provided.