Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: Shift Markdown headings according to the current `heading_level`
Fixes #192
- Loading branch information
Showing
with
73 additions
and 13 deletions.
- +42 −2 src/mkdocstrings/handlers/base.py
- +1 −1 src/mkdocstrings/templates/python/material/attributes.html
- +1 −1 src/mkdocstrings/templates/python/material/docstring.html
- +1 −1 src/mkdocstrings/templates/python/material/examples.html
- +1 −1 src/mkdocstrings/templates/python/material/exceptions.html
- +1 −1 src/mkdocstrings/templates/python/material/parameters.html
- +1 −1 src/mkdocstrings/templates/python/material/return.html
- +1 −1 src/mkdocstrings/templates/python/readthedocs/exceptions.html
- +1 −1 src/mkdocstrings/templates/python/readthedocs/parameters.html
- +1 −1 src/mkdocstrings/templates/python/readthedocs/return.html
- +8 −0 tests/fixtures/headings.py
- +14 −2 tests/test_extension.py
| @@ -0,0 +1,8 @@ | ||
| """ | ||
| Foo | ||
| === | ||
| ### Bar | ||
| ###### Baz | ||
| """ |