Quarto文档添加多个Mermaid流程图时渲染挂起求助
问题:Quarto添加多个Mermaid代码块后渲染挂起
我在RStudio中使用Quarto编写一份200多页的长文档,近期更新后文档无法正常渲染。经排查,问题源于添加两个Mermaid流程图代码块:删除所有Mermaid块或仅保留一个时,渲染完全正常;添加第二个则会挂起,即使重复同一个原本可正常渲染的代码块也会出现该问题。
可正常渲染的代码示例
--- title: | | XXXXXXXXXXXXXXXXXXXXXX | XXXXXXXXXX subtitle: | | xxxxxxxxxxx | | 1st Edition date-format: "YYYY" date: last-modified lang: en-GB format: pdf: indent: false fontsize: "10" --- # Preface Blah Blah Blah ## Flow chart ::: {#fig-BitDepth} ```{mermaid} %%| fig-width: 5 flowchart LR A[analogue data] --> B(pre amplifier) B --> C{ADC} C --> D[14 bit ADC 16384 levels] C --> E[24 bit ADC 16777216 levels] Signal processing pathway and the effect of ADC bit depth on resolution. :::
添加第二个相同代码块后挂起的示例
--- title: | | XXXXXXXXXXXXXXXXXXXXXX | XXXXXXXXXX subtitle: | | xxxxxxxxxxx | | 1st Edition date-format: "YYYY" date: last-modified lang: en-GB format: pdf: indent: false fontsize: "10" --- # Preface Blah Blah Blah ## Flow chart ::: {#fig-BitDepth} ```{mermaid} %%| fig-width: 5 flowchart LR A[analogue data] --> B(pre amplifier) B --> C{ADC} C --> D[14 bit ADC 16384 levels] C --> E[24 bit ADC 16777216 levels] Signal processing pathway and the effect of ADC bit depth on resolution. ::: ## Flow chart2 ::: {#fig-BitDepth2} ```{mermaid} %%| fig-width: 5 flowchart LR A[analogue data] --> B(pre amplifier) B --> C{ADC} C --> D[14 bit ADC 16384 levels] C --> E[24 bit ADC 16777216 levels] Signal processing pathway and the effect of ADC bit depth on resolution. :::
环境版本信息
Quarto及依赖版本
Quarto 1.5.57 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.2.0: OK Dart Sass version 1.70.0: OK Deno version 1.41.0: OK Typst version 0.11.0: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 1.5.57 Path: /Applications/quarto/bin [✓] Checking tools....................OK TinyTeX: (not installed) Chromium: (not installed) [✓] Checking LaTeX....................OK Using: Installation From Path Path: /Library/TeX/texbin Version: 2024 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.11.5 (Conda) Path: /Users/peterchapple/anaconda3/bin/python Jupyter: 5.3.0 Kernels: python3 [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........OK Version: 4.4.1 Path: /Library/Frameworks/R.framework/Resources LibPaths: - /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library knitr: 1.48 rmarkdown: 2.28 [✓] Checking Knitr engine render......OK
R环境信息
> sessionInfo() R version 4.4.1 (2024-06-14) Platform: aarch64-apple-darwin20 Running under: macOS Sonoma 14.6.1 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: Australia/Melbourne tzcode source: internal attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.4.1 tools_4.4.1 rstudioapi_0.17.1
恳请各位提供解决办法!
内容的提问来源于stack exchange,提问作者Peter
相关产品推荐
相关产品推荐

