-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD007: incorrectly warns when mixing ul/ol #975
Comments
Forgot to mention the reason I'm using 4-spaces indent is because the documents are meant to be consumed by mkdocs so it goes through mdformat-mkdocs which enforces this. |
I experience the same issue. |
Just noticed that we had that issue a while back #301... looking into it. And not an excuse, but an explanation of sorts. When doing research for that rule, I believe that any amount of indentation of an unordered list in an ordered list will not fire. 1. ffff
+ dddd for example will not fire. But change the Still, working on it. |
Actually, downloaded the tool and tried something out. Can I get you to verify what happens when you copy this snippet to a file and scan it through the tool? - abc
- def
1. abc
- def
> - abc
> - def
>
> 1. abc
> - def |
Here is what I get:
|
@EvaSDK Sorry, I meant Md007 only deals with unordered lists, and changing that did not sit well with me. So, I created a new PML101 that uses "anchored list indents" that seems to work in all the cases I have thrown at it, validated by mdformat and mkdocs. It should be released within a couple of days. |
closed as open for too long. |
I have a few documents that should be valid but are reporting issues in pymarkdown due to what appears to be a problem related to mixing types of lists.
Here is the sample file:
Here is configuration file:
Running pymarkdown returns:
This issue is not new (had the same with 0.9.13.4). markdownlint has no issue with this document but I try to avoid it as I'm using this tool in pre-commit and I don't want to bother getting NPM in my CI for this.
The text was updated successfully, but these errors were encountered: