This commit is contained in:
JiriUhlir
2026-09-03 10:03:10 +02:00
parent 156289fe2d
commit a922117b3d
13 changed files with 583 additions and 59 deletions
+3
View File
@@ -174,6 +174,9 @@ class ConversionPipeline:
)
document = SourceDocument(raw_html)
if engine_name == "weasyprint":
# WeasyPrint drops such images without a word, see the method docstring.
document.relax_percentage_image_widths()
document.set_base_url(base_url)
document.append_stylesheet(
build_page_css(