-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Folding code blocks but not the output (e.g. figures) [FR] #477
Labels
Comments
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
A quick and hacky implementation of this: 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: