[GH-ISSUE #173] MD004 and TaskList #1997

Closed
opened 2026-03-07 20:03:31 +03:00 by kerem · 4 comments
Owner

Originally created by @HBSpy on GitHub (Mar 19, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/173

Any idea to deal with Extended Syntax Task List?

  • Write the press release
  • Contact the media
  • Update the website

now it will alert MD004

Originally created by @HBSpy on GitHub (Mar 19, 2019). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/173 Any idea to deal with Extended Syntax Task List? - [x] Write the press release - [ ] Contact the media - [ ] Update the website now it will alert MD004
kerem 2026-03-07 20:03:31 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Mar 19, 2019):

The style GitHub uses seems not to trigger any MD004 errors:
https://guides.github.com/features/mastering-markdown/

Could you please show some example Markdown or link to a document with violations?

<!-- gh-comment-id:474513724 --> @DavidAnson commented on GitHub (Mar 19, 2019): The style GitHub uses seems not to trigger any MD004 errors: https://guides.github.com/features/mastering-markdown/ Could you please show some example Markdown or link to a document with violations?
Author
Owner

@HBSpy commented on GitHub (Mar 20, 2019):

I found it in my VS Code

TIM截图20190320092111
TIM截图20190320092147

<!-- gh-comment-id:474646989 --> @HBSpy commented on GitHub (Mar 20, 2019): I found it in my VS Code ![TIM截图20190320092111](https://user-images.githubusercontent.com/3386804/54652402-bbcf2780-4af1-11e9-950e-5111d818a2f8.png) ![TIM截图20190320092147](https://user-images.githubusercontent.com/3386804/54652406-bd98eb00-4af1-11e9-89c8-e0041d095eec.png)
Author
Owner

@DavidAnson commented on GitHub (Mar 20, 2019):

That’s because an earlier list in your document (the one at the top of your image) uses the ‘*’ as a list marker. By default, MD004 assumes the first list item it finds uses the list marker style you want for the entire document. You could change the other list(s) to use ‘-‘ and this warning should go away. Or you could disable MD004 if you like how your document is now.

More info here: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004

<!-- gh-comment-id:474648591 --> @DavidAnson commented on GitHub (Mar 20, 2019): That’s because an earlier list in your document (the one at the top of your image) uses the ‘*’ as a list marker. By default, MD004 assumes the first list item it finds uses the list marker style you want for the entire document. You could change the other list(s) to use ‘-‘ and this warning should go away. Or you could disable MD004 if you like how your document is now. More info here: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004
Author
Owner

@HBSpy commented on GitHub (Mar 20, 2019):

O, i see
I prefer to use * for list and - [x] for task
THX

<!-- gh-comment-id:474650110 --> @HBSpy commented on GitHub (Mar 20, 2019): O, i see I prefer to use * for list and - [x] for task THX
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#1997
No description provided.