Skip to content

MkDocs

Issues

Nested list items must use 4 spaces

Solutions:

  • Python-Markdown suggests using markdown.markdown(text, tab_length=2) as Python-Markdown configuration, however, MkDocs cannot directly configure Python-Markdown behaviour
  • Therefore install the mdx_truly_sane_lists Python-Markdown extension

Install mdx_truly_sane_lists pip package:

pip install mdx_truly_sane_lists

mkdocs.yaml:

markdown_extensions:
  - mdx_truly_sane_lists