-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lines containing, but not starting, with "#| echo: fenced" are omitted #10821
Comments
@mcanouil You did reproduce it. The code chunk in the rendered doc has the label line, but not the fig-cap line |
How you meant, it's not in the echoed code cell. |
Super-niche bug, I know |
This happens for both knitr and Python engines. It seems to be on purpose (not only here) but maybe the "hard way" is way too hard:
|
I hacked a fix like I describe here: #3554 (reply in thread) |
The |
FYI the specific line at play is this one: quarto-cli/src/resources/rmd/hooks.R Line 465 in 084df08
|
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
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
The text was updated successfully, but these errors were encountered: