You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A doc with very simple content defaults to generating HTML with CSS that is not print-responsive. By print-responsive I mean CSS that is supported by WeasyPrint so that the HTML+CSS responds to be being rendered onto a print page (as PDF).
Steps to reproduce
get into environment with weasyprint (see environment below)
copy print0.qmd.txt to current working directory as print0.qmd
quarto render print0.qmd
weasyprint print0.html print0.pdf
open print0.html and print0.pdf with web browser and PDF viewer
podman run --rm -it -v .:/mnt -w /mnt registry.gitlab.com/perm.pub/dock/qweasyprint-deb:12.5-1.4.553-1
Expected behavior
At a superficial level, I expected the PDF and HTML to have the same space between the author and the introduction section title.
At a deeper level, I expected Quarto to not default to depending on Bootstrap (CSS) for basic HTML content because Bootstrap is not tested to be print-responsive (i.e. work with WeasyPrint).
Sounds like Quarto is putting A LOT of effort into turning HTML into Typst so that a PDF can look like the HTML. So I would expect that Quarto would put at least some effort into outputting HTML that can be turned directly into a PDF using WeasyPrint so that no Typst intermediate step is needed.
Actual behavior
The PDF has no space between the author and the first title whereas a web browser shows ~16px space. This is because Bootstrap CSS is using margin-block-end which is not support by WeasyPrint.
Your environment
podman run --rm -it -v .:/mnt -w /mnt registry.gitlab.com/perm.pub/dock/qweasyprint-deb:12.5-1.4.553-1
which contains weasyprint 57.2. But current version 60.2 also reproduces the issue.
Quarto check output
Quarto 1.4.553
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.553
Path: /opt/quarto/bin
Bug description
A doc with very simple content defaults to generating HTML with CSS that is not print-responsive. By print-responsive I mean CSS that is supported by WeasyPrint so that the HTML+CSS responds to be being rendered onto a print page (as PDF).
Steps to reproduce
print0.qmd
quarto render print0.qmd
weasyprint print0.html print0.pdf
WeasyPrint environment:
You can install WeasyPrint locally by
apt-get install weasyprint
or see https://doc.courtbouillon.org/weasyprint/stable/first_steps.htmlOr you can run in a container I used to test:
podman run --rm -it -v .:/mnt -w /mnt registry.gitlab.com/perm.pub/dock/qweasyprint-deb:12.5-1.4.553-1
Expected behavior
At a superficial level, I expected the PDF and HTML to have the same space between the author and the introduction section title.
At a deeper level, I expected Quarto to not default to depending on Bootstrap (CSS) for basic HTML content because Bootstrap is not tested to be print-responsive (i.e. work with WeasyPrint).
Sounds like Quarto is putting A LOT of effort into turning HTML into Typst so that a PDF can look like the HTML. So I would expect that Quarto would put at least some effort into outputting HTML that can be turned directly into a PDF using WeasyPrint so that no Typst intermediate step is needed.
Actual behavior
The PDF has no space between the author and the first title whereas a web browser shows ~16px space. This is because Bootstrap CSS is using margin-block-end which is not support by WeasyPrint.
Your environment
podman run --rm -it -v .:/mnt -w /mnt registry.gitlab.com/perm.pub/dock/qweasyprint-deb:12.5-1.4.553-1
which contains weasyprint 57.2. But current version 60.2 also reproduces the issue.
Quarto check output
Quarto 1.4.553
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.553
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Tex: (not detected)
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.2
Path: /usr/bin/python3
Jupyter: (None)
[✓] Checking R installation...........(None)
The text was updated successfully, but these errors were encountered: