-
Notifications
You must be signed in to change notification settings - Fork 389
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
Can't include mermaid diagrams as svg for beamer output, only as png
Steps to reproduce
Minimal example to reproduce:
---
format:
beamer:
mermaid-format: svg
mermaid: true
pdf:
mermaid-format: svg
mermaid: true
keep-tex: true
---
# Ola
```{mermaid}
flowchart
A["Amigo"]
```
Actual behavior
compilation failed- error
LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.109 <
script src="template_files/libs/quarto-diagram/mermaid-postprocess-shi...
With the script just being injected into the tex-file:
<...>
<script src="template_files/libs/quarto-diagram/mermaid-postprocess-shim.js"></script>
\KOMAoption{captions}{tableheading}
\makeatletter
<...>Expected behavior
no error
Your environment
- OS: Fedora42
Quarto check output
❯ quarto check
Quarto 1.8.25
[✓] Checking environment information...
Quarto cache location: /home/user/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.8.25
Path: /opt/quarto-1.8.25/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: 2023
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /usr/bin/chromium-browser
Source: PATH
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.13.9
Path: /usr/bin/python3
Jupyter: 5.7.2
Kernels: .venv, myenv, python3, rust
(/) Checking Jupyter engine render....Traceback (most recent call last):
(-) Checking Jupyter engine render.... File "/opt/quarto-1.8.25/share/jupyter/jupyter.py", line 20, in
from notebook import notebook_execute, RestartKernel
File "/opt/quarto-1.8.25/share/jupyter/notebook.py", line 20, in
from nbclient import NotebookClient
ModuleNotFoundError: No module named 'nbclient'
WARN: Error encountered when rendering files
[✓] Checking Jupyter engine render....OK