-
Notifications
You must be signed in to change notification settings - Fork 79
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
🤺 Amenable Fences #482
🤺 Amenable Fences #482
Conversation
I don't really like Looking at prior art, quarto seems to use
Ignoring this prior art (which I'm not sure we should do) I think I'd prefer something like |
Leaning towards edn in the annotations so: ```javascript {:nextjournal.clerk/visibility {:code :fold} :nextjournal.clerk/code-listing true}
41 + 1
``` Potentially dropping the namespace step and namespacing programmatically: ```javascript {:visibility {:code :fold} :code-listing true}
41 + 1
``` Which we then namespace so If we want to support a short-hand like for Clojure metadata we could read multiple times and merge, i.e. ```javascript :code-listing {:visibility {:code :fold}}
41 + 1
``` For now I think I'm leaning towards the first option. A bit longer, but nice, simple & explicit. |
By specifying `{:nextjournal.clerk/code-listing true}` after the language. --------- Co-authored-by: Martin Kavalar <martin@nextjournal.com>
The purpose of these changes is two-fold:
skip
oreval=false
(inspired by RMarkdown/KnitR) annotaions to be used to signal a clojure fenced block should not be evaluated: