Plot doesn't appear in Quarto with Weasyprint

I want to use weasyprint with quarto but the plot doesn't display.
This display the plot

---
title: "Test 1"
author: "Komlan"
format: pdf
---

But this no

---
title: "Test 2"
author: "Komlan"
format:
  pdf:
    css: report.css
    pdf-engine: weasyprint
---

test1.pdf (23.4 KB)
test2.pdf (15.2 KB)

See about Quarto and weasyprint in

It is not really supported right now as you are trying to use it. I would rather

  • Render to HTML with Quarto
  • Print using weasyprint in a post render step without involving quarto.