[GH-ISSUE #969] MD007: Alternating fixes for nested list item definition (* * item) #576

Closed
opened 2026-03-03 01:28:08 +03:00 by kerem · 2 comments
Owner

Originally created by @UnkwUsr on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/969

List item with heading extra asterisk makes markdownlint mad so it shifts this line right-left from run to run.

I know this is not valid markdown syntax, but it is strange to stuck in loop.

Example

Original:

* * asd

After running markdownlint --fix:

  * * asd

After running markdownlint --fix (x2):

* * asd
Originally created by @UnkwUsr on GitHub (Sep 13, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/969 List item with heading extra asterisk makes `markdownlint` mad so it shifts this line right-left from run to run. I know this is not valid markdown syntax, but it is strange to stuck in loop. ## Example Original: ``` * * asd ``` After running `markdownlint --fix`: ``` * * asd ``` After running `markdownlint --fix` (x2): ``` * * asd ```
kerem 2026-03-03 01:28:08 +03:00
Author
Owner

@DavidAnson commented on GitHub (Sep 13, 2023):

Fun! Did this start in a recent release? (I'd guess it was there for a while.)

https://dlaa.me/markdownlint/#%25m%23%20Issue%20969%0A%0A*%20*%20asd%0A

<!-- gh-comment-id:1718376531 --> @DavidAnson commented on GitHub (Sep 13, 2023): Fun! Did this start in a recent release? (I'd guess it was there for a while.) https://dlaa.me/markdownlint/#%25m%23%20Issue%20969%0A%0A*%20*%20asd%0A
Author
Owner

@DavidAnson commented on GitHub (Sep 14, 2023):

This behavior is present in the first version of markdownlint-cli2 that supported --fix, so it's at least 3 years old. (Not a new regression.)

markdownlint-cli2 v0.0.13 (markdownlint v0.22.0)

<!-- gh-comment-id:1718764819 --> @DavidAnson commented on GitHub (Sep 14, 2023): This behavior is present in the first version of `markdownlint-cli2` that supported `--fix`, so it's at least 3 years old. (Not a new regression.) `markdownlint-cli2 v0.0.13 (markdownlint v0.22.0)`
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#576
No description provided.