-
Notifications
You must be signed in to change notification settings - Fork 2
Semantic line feeds issue in nested bullets in numbered lists #7
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
Comments
I think this is fixed by: #8 Right now the changes only support semantic indents on bulleted items within a numbered list (i.e. numbered-bullet), but not when the numbered list is within a bulleted list (i.e. bullet-number-bullet). Does the latter also need to be supported? It adds a bit of extra complexity |
I think ultimately the right solution is supporting recursive permutations of any combination of bullets and numbered lists, though I think it's okay to not support infinite recursions for now One other case I just hit: simple bulleted lists. Can you add a case for that?
|
Ah, I didn't think bulleted lists were handled correctly in Instead, it looks like they work fine and I generalized the logic in the PR. The important notes are:
|
I released v1.0.3 while pending input on the above questions: #7 (comment) Let me know if v1.0.3 and the new CLI arg work as expected |
I think the asterisk line should be indented with 3 spaces for vanilla Markdown. You will want to confirm this with Mkdocs-style Markdown as well. Also, thank you for the quick turnaround, it's awesome! |
You're welcome; I'm happy to see my projects getting use! |
After some testing,
Example of pending changes: https://github.com/KyleKing/mdformat-mkdocs/pull/10/files#diff-f21280fed25185b9d724c03bd5cf1397004cc3f24a6537f77d023e35b4655576 I released a preview version ( |
Seems like a step forward with a more general arg name, thanks! Now if only |
I've released v1.0.4! Let me know if you run into any additional edge cases |
Same issue as #4, but for nested bullets inside a list.
semantic line 1 (3 spaces deep)
semantic line 2 (6 spaces deep)
I believe
mdformat-mkdocs==1.0.2
is impacting the second semantic line feed.I have
prettier
(.prettierrc.toml
:tabWidth = 4
) andmdformat
, together inpre-commit
:The text was updated successfully, but these errors were encountered: