-
Notifications
You must be signed in to change notification settings - Fork 129
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
Finalize syntax (e.g., ```js {show}) to denote live code blocks #28
Comments
Another option would be markdown-it-container, which might look like this: :::js
1 + 2
::: |
Curly braces seem like the safest choice to me, not only because they follow Quarto's style but also because code blocks would still display as code (albeit without the correct highlighting) when viewing the Markdown files directly. |
Does this ticket include which options we will support for Milestone 1: Internal Release? |
They’re not currently called out, but I believe all we need to support is:
The names above aren’t finalized, but I think that’s all the functionality we need. (Plus the ability to control at the page level via front matter but that is tracked separately.) |
We currently use standard fenced code blocks
This can be surprising because it behaves differently from standard Markdown: the code runs instead of being displayed! And also it’s inconsistent with non-JavaScript code blocks, which do display as normal.
So instead, we could follow Quarto’s example by using curly braces:
I also thought about using script tags, or some such…
But that seems weird. 🤔
The text was updated successfully, but these errors were encountered: