-
Notifications
You must be signed in to change notification settings - Fork 49
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
inconsistent indenting of nested lists #371
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
The logic here is as follows:
Hmm, are you 100% sure about this? I'm doubtful, because JupyterBook uses myst-nb which uses myst-parser which uses markdown-it-py to parse Markdown, and that is a CommonMark compliant parser which happens to be the same exact parser used by mdformat. |
I published mdformat-mkdocs to format list indents to 4-spaces, which might be helpful for your use case |
Closing, as this issue should be fixed now by installing KyleKing's mdformat-mkdocs plugin. |
Describe the bug
context
When I run MdFormat on this notebook through nbqa…
expectation
I expected to get nested lists indented a certain number of spaces.
bug
But instead some are indented two spaces, while some are indented three.
problem
This is a problem because I'm publishing that notebook via JupyterBook, and it's Markdown parser only seems to support nested lists indented 3+ spaces.
cc #331 (comment) for the option to make that configurable for more fragile Markdown parsers
Reproduce the bug
Download this notebook
Run Mdformat through nbqa:
List your environment
The text was updated successfully, but these errors were encountered: