mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #683] lists in quotes should not be linted as normal lists? #2355
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#2355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mimoo on GitHub (Dec 19, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/683
the text:
a similar rule got triggered on something like this:
because it didn't start with "1."
@DavidAnson commented on GitHub (Dec 19, 2022):
Lists in blockquotes are valid lists as demonstrated below. Why do you think they should not be linted?
http://markdown-it.github.io/#md3=%7B%22source%22%3A%22%3E%201.%20Item%5Cn%3E%201.%20Item%5Cn%5CnText%5Cn%5Cn%3E%20-%20Item%5Cn%3E%20-%20Item%5Cn%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Atrue%2C%22_view%22%3A%22html%22%7D%7D
@mimoo commented on GitHub (Dec 20, 2022):
because I think it is a valid thing to want to quote parts of a list. For example, do you think the following should be deemed invalid markdown text:
Here's my recipe:
notice the last two steps:
which do not make sense
@DavidAnson commented on GitHub (Dec 20, 2022):
It sounds like you have a pretty specific scenario where are you deliberately want to include an incomplete list inside a blockquote. For special cases like yours, it may be best to disable this rule for that part of your document (or maybe for your entire project). However, I do not think this scenario is a reason not to ever lint lists inside a blockquote.
@scottamain commented on GitHub (Dec 21, 2022):
FYI @mimoo here's how to disable:
@mimoo commented on GitHub (Dec 21, 2022):
mmm, I still disagree because a quote semantically should be able to quote the exact text (and a list is text) so I'm just going to disable that rule globally
@DavidAnson commented on GitHub (Dec 22, 2022):
Great!
@jeroenheijmans commented on GitHub (Mar 13, 2023):
Came here to ask the same thing, the rationale for it being the way it is seems fair enough. Especially with aforementioned workaround. I wanted to add to the conversation with a somewhat more extended example which may help others
Thanks again for a great plugin. It helps me keep my ramblings somwehat readable!