Open dev-artisan opened 2 months ago
Suggestion: Perhaps just remove the line that is forcing it to "true"
Hi @dev-artisan, thanks for raising this issue!
If we remove a preserveAspectRatio
propetry from SVG, diagrams will not be correctly displayed in web-site (by default). Perhaps, it'll be better to embed an aspect ratio settings in puml
itself. I'll research this problem a bit more.
Suggested solution in the below pull request:
Describe the bug When using mkdocs-exporter plugin to export to PDF, the process errors during PDF creation saying:
To Reproduce Steps to reproduce the behavior:
Expected behavior The error should not appear and the preserveAspectRatio attribute of the svg should be configurable using the
skinparam
option provided by plantuml e.g.See valid options for attribute here.
Additional context The issue seems to be a hard override here: https://github.com/MikhailKravets/mkdocs_puml/blob/master/mkdocs_puml/puml.py#L126C27-L126C46