-
Notifications
You must be signed in to change notification settings - Fork 78
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
lists are not aligned properly when exported to PDF with mkdocs-material as theme #145
Comments
After searching and testing solutions, I found that the problem may originate from After testing solutions, I have found a fix for the problem. Here is my modification: .md-typeset > ul {
margin-left: 0rem !important;
}
.md-typeset ul li,
.md-typeset ol li {
margin-left: 1.5rem !important;
} I placed it on top of During my search, I also added the solution from issue #94. |
Thanks! I ended up placing this in This allowed me to keep the fix in my own codebase and not rely on changes to files from this repo. |
Problem
It seem that
mkdocs-with-pdf
don't indent lists whenmkdocs-material
theme is used.Configuration
mkdocs.yml
(withoutmkdocs-material
) :mkdocs.yml
(withmkdocs-material
) :Source
docs/index.md
:Result
document.pdf
(withoutmkdocs-material
)document.pdf
(withmkdocs-material
)Comment
As you can see the unordered list is not indented on each level and the next list are indented in the wrong direction and still not visually indented on each level even when the marker is indented.
The text was updated successfully, but these errors were encountered: