Open Kanaduchi opened 4 years ago
I am able to export without issue; however, the icons used with Admonition are converted to soild color squares.
I am able to export without issue; however, the icons used with Admonition are converted to soild color squares.
I have same experience, but in my case generated PDF has empty page before current page. May be related to #89
@rocinante333 @theanurin I found that admonitions used to look correct (including icon, and with correct border look) in mkdocs-material 4.6.3 but broke with mkdocs-material 5.0.0 (first bad commit is b345a0b65) and filed this mkdocs-material issue about it: https://github.com/squidfunk/mkdocs-material/issues/3771
I'm not sure if the solution is some change in mkdocs-material or if mkdocs-pdf-export-plugin or weasyprint needs to do something to "catch up" to handle the changes in mkdocs-material, but let's see what mkdocs-material maintainer says.
So mkdocs-material author closed the issue saying they don't officially support mkdocs-pdf-export-plugin.
@zhaoterryy Perhaps my investigation in https://github.com/squidfunk/mkdocs-material/issues/3771 can still be of use. It shows that mkdocs-material b345a0b65 Prototyped material icon SVG integration
was the first revision of mkdocs-material where mkdocs-pdf-export-plugin started having problem with the admonitions (render them incorrectly).
Turns out the missing icon is due to lack of support for image-mask in WeasyPrint (https://github.com/Kozea/WeasyPrint/issues/1458). mkdocs-materials is using this since version 5.
Is it possible to add support of https://python-markdown.github.io/extensions/admonition/ extension?
Currently when I try to export such pages I got an error: