Bug description
This is a tiny minor bug, but if you try to include the text #| echo: fenced in a fenced figure caption, that doesn't show up! (I found this while writing the quarto chapter of my MSc methods textbook).
I assume you just need to add regex to only omit lines that start with #| echo: fenced
Steps to reproduce
```{r}
#| echo: fenced
#| label: fig-demo
#| fig-cap: "fig-cap is invisible if it contains `#| echo: fenced`"
hist(rnorm(100000))
```
Expected behavior
The figure caption line should show in the code block
Actual behavior
The fig-cap line does not show
Your environment
- IDE: RStudio 2023.06.0+421
- quarto: 1.5.57
- R version 4.2.1 (2022-06-23)
Quarto check output
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: (external install)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/lisad/Library/TinyTeX/bin/universal-darwin
Version: 2021
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.9.6
Path: /Users/lisad/.virtualenvs/r-reticulate/bin/python3
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.2.1
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.2/Resources/library
knitr: 1.44
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Bug description
This is a tiny minor bug, but if you try to include the text
#| echo: fencedin a fenced figure caption, that doesn't show up! (I found this while writing the quarto chapter of my MSc methods textbook).I assume you just need to add regex to only omit lines that start with
#| echo: fencedSteps to reproduce
Expected behavior
The figure caption line should show in the code block
Actual behavior
The fig-cap line does not show
Your environment
Quarto check output
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: (external install)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/lisad/Library/TinyTeX/bin/universal-darwin
Version: 2021
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.9.6
Path: /Users/lisad/.virtualenvs/r-reticulate/bin/python3
Jupyter: (None)
[✓] Checking R installation...........OK
Version: 4.2.1
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.2/Resources/library
knitr: 1.44
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK