daizutabi / mkapi

A plugin for MkDocs to generate API documentation
https://daizutabi.github.io/mkapi/
MIT License
94 stars 19 forks source link

Code block formatted incorrectly #123

Open twsl opened 4 months ago

twsl commented 4 months ago

Using the latest version of both mkapi and the mkdocs-material theme, the api code is formatted incorrectly. This issue has been introduced by https://github.com/squidfunk/mkdocs-material/commit/4eb1a4393741b1ecf8019dd53292b7a4d02e16f5

I bypassed this for now by overwriting it:

.md-typeset .md-code__content {
    display: block !important;
}

But I assume this is not the proper solution and might need investigation.

frazane commented 1 month ago

Thanks @twsl this partially addresses the problem for me. The formatting is okay, but the [docs] link does not always appear on the correct line.