orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
332 stars 77 forks source link

Align left for images has no effects #14

Closed JanoschDeurer closed 4 years ago

JanoschDeurer commented 4 years ago

Mkdocs material supports image alignment: https://squidfunk.github.io/mkdocs-material/reference/images/#images However, this has no effect on the pdf. I looked into the html debug output and the html attribute is set correctly. So I think there is either a problem with the css or with WeasyPrint.

If you give me a pointer on where to look I'll gladly help fixing the issue.

orzih commented 4 years ago

Thank you for your reporting.

WeasyPrint is not supported img[align] attribute. So, I tried to convert it to CSS float style. Please try it.

MalkmusT commented 4 years ago

I can confirm that this problem is solved in the latest verison v0.6.1