-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
No generation if indentation is 2 spaces? #14
Comments
Additional info: |
The original Markdown specification requires lists to be indented by 4 spaces. If there are fewer spaces, it is not counted as indentation. So first off, I sure hope that this linter can be changed so it doesn't recommend broken Markdown instead of correct Markdown. Example for markdownlint: MkDocs uses Python-Markdown which closely follows this original specification. So, if you put such a list into a normal Markdown file within MkDocs, it will also be considered a flat list - not indented. So, you already have a problem with MkDocs regardless of this plugin. Just try it and see. mkdocs-literate-nav doesn't parse Markdown, it uses exactly what MkDocs parsed. To solve this for MkDocs overall, I believe this plugin will do the trick: markdown_extensions:
- mdx_truly_sane_lists |
lot of valuable information, thank you! |
using mdx_truly_sane_lists and 2 spaces makes the navigation.md rendered correctly, but the navigation is still messed up. there seems to be no real solution, except, to keep the indent on 4 spaces and add a linter config to enforce that |
Oh, sorry. So what I said is wrong 😞
Instead, it just uses Python-Markdown without any extensions.
I could do a change to actually make it work like I said, but not sure what's best. |
mdx_truly_sane_lists seems to be super nice and helpful. It fixes some docs I have imported, where no one will ever have the energy to reformat them. |
Thanks for the productive discussion. I have opened a pull request that does this. I even discovered that Python-Markdown actually has configurable indentation, but it's impossible to specify it in MkDocs itself. |
Thank you for following up on the topic and for the fast reaction! So great getting that feature in such a short time.
Do you think this should be reported to mkdocs? |
Well I'm keeping track of this for mkdocs myself.
-doesn't seem like something I'd want to encourage |
Hi,
It seems I do not get the site map when the markdown file I use is indented 2 spaces.
Only 4 works. What is unfortunate since this conflicts with some auto-format rules I have.
Is there a way to make it work with 2 spaces?
like this
instead of
?
The text was updated successfully, but these errors were encountered: