You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A similar issue (#425) requests foldable code blocks, and a comment also provides a simple solution to get the desired result. However, surrounding a code block with <details> and </details> would also hide the output generated by Weave.jl, such as a figure. Is there any way to hide the code, but not the output?
The text was updated successfully, but these errors were encountered:
nathanaelbosch
changed the title
Folding code blocks _but not the output such as figures_ [FR]
Folding code blocks but not the output (e.g. figures) [FR]
Nov 15, 2023
Weave.register_format!("custom", Weave.GitHubMarkdown(
codestart=""" ```@raw html <details><summary>Code:</summary> ``` ```julia""",
codeend=""" ``` ```@raw html </details> ```""",
))
This makes all code folded in a <details> block with summary Code:. This works well enough for my use-case, but I think a chunk option could still be valuable.
A similar issue (#425) requests foldable code blocks, and a comment also provides a simple solution to get the desired result. However, surrounding a code block with
<details>
and</details>
would also hide the output generated by Weave.jl, such as a figure. Is there any way to hide the code, but not the output?The text was updated successfully, but these errors were encountered: