Hello, this is my first topic here.
I'm having trouble rendering a quarto document with a mermaid chunk in it.
The only output I get is :
"==> quarto preview Test1.qmd --to docx --no-watch-inputs --no-browse
processing file: Test1.qmd
output file: Test1.knit.md"
And the rendering continues to run forever... I have edge installed on my computer (and html rendering is shown on it), but something is not working here. I searched online and didn't find the reason so this is why i come here : any clues about why I get this result ?
Hi, welcome to the forum.
I suspect that we need to know much more about what you are doing. See FAQ: How to do a minimal reproducible example ( reprex ) for beginners for some suggestions.
Thank you,
The thing i do is so simple I thought it was a basic thing.
So I created a Quarto Document file in RStudio (I try to move from Rmd to Qmd). I then wanted to test making a basic mermaid chart. So I added to the document a mermaid chunk using the small green button used to add various chunks.
The mermaid chunk I have now is :
"```{mermaid}
graph TD
D1[Fichier données 1] --> C1[Fichier Code 1]
D2[Fichier données 2] --> C1[Fichier Code 1]
C1[Fichier Code 1] --> R1[Resultat 1]
Then the error is occuring when I click on the "render" button on top. It works for html, but when the expected output is a docx the problem I described occured.
I hope this helps to understand my problem.
This definitely helps. Can you also tell us what operating system you have and what versions of R, RStudio and quarto you are using?
The output of sessionInfo() would also be helpful.
Please copy the various outputs and paste them here between
```
```
This gives us formatted material that is much easier to read and copy if necessary.
You are correct, it looks like a very simple thing but there seems to be something bizarre going on. I am a Linux user so I do not have Word but I can run your code , create a docx file and load it into LibreOffice with no problem. I think that am running into another bug but I do not know if it would affect you.
I have done a bit of experimenting with Quarto & Mermaid and I am beginning to think that there is something weird about your {mermaid} code but I cannot see it. I think I shall have to start over and see what happens.
Thank you for your reply. I'm on windows, using RSTUDIO 2026.01.1.1 + 403. So I guess Quarto 1.8.25.
Below is the result of sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=French_France.utf8 LC_CTYPE=French_France.utf8 LC_MONETARY=French_France.utf8
[4] LC_NUMERIC=C LC_TIME=French_France.utf8
time zone: Europe/Paris
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.5.1 tools_4.5.1 rstudioapi_0.17.1 knitr_1.50 xfun_0.52 evaluate_1.0.4
Thanks.
I notice that I am using Quarto Version 1.9.38 on Ubuntu 26.04 and I am running a newer version of R but I rather doubt this is the problem or we should be seeing more postings about your problem.
!! Breaking news!!
Quarto 1.10 has just been released
This is my set-up.
> sessionInfo()
R version 4.6.1 (2026-06-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 26.04 LTS
RStudio Desktop Pro, 2026.06.0 Build 242.pro13
The RStudio Desktop Pro is a mistake. I thought I was updating to the standard desktop version.
Using my set-up I can produce your Mermaid chart in
For a moment, I was having a problem running your chart plus another {mermaid} chart but a simple restart of R solved that problem.
So, at the moment, I have no idea what is happening. You might want to update R and Quarto just "because". A quick internet search is not turning up much but a possible work-around seems to be Mermaid not rendering in Quarto document in RStudio IDE visual editor - #3 by cderv.
Just for general interest here is my sessionInfo().
R version 4.6.1 (2026-06-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 26.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.32.so; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: America/Toronto
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.6.1 lobstr_1.2.1 cli_3.6.6 tools_4.6.1 rstudioapi_0.19.0 pacman_0.5.1
[7] rlang_1.3.0 pak_0.11.1