Allow for `:::admonition` syntax (without curly brackets)
See original GitHub issueRight now our special admonition syntax uses the same curly-bracket structure that we use for directives. AKA:
```{note}
my note
```
is equivalent to
:::{note}
my note
:::
What do people think about supporting the Pandoc-style of admonition classes w/o curly brackets:
:::note
my note
:::
This could be a comma-separated list of admonition labels, so we could allow for :::note,admonition
and this would behave like :::{note,admonition}
.
One benefit of this would potentially be interoperability with other markdown specs. For example, in HackMD :::info
blocks will render as special “info” blocks, whereas the curly brackets are a more MyST-specific thing so less likely to interoperate with other flavors of markdown.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Arrow function without curly braces - javascript - Stack Overflow
I'm new to both ES6 and React and I keep seeing arrow functions. Why is it that some arrow functions use curly braces...
Read more >26/30, no curly brackets after "if" and "else" ? | Codecademy
Yes it is not necessary to use curly braces after conditions and loops (functions always need them) IF and only if there is...
Read more >The MyST Syntax Guide
Directives syntax is defined with triple-backticks and curly-brackets. It is effectively a code block with curly brackets around the ...
Read more >AsciiDoc Syntax Quick Reference - Asciidoctor Docs
View result of Example 1 ... This is the answer. Are cameras allowed?:: Are backpacks allowed?:: No. asciidoc ... The curly braces around...
Read more >C# if-else statement: Curly braces or not? An in-depth analysis
Curly braces is used to group a set of statement and deceleration. We use them along with loops and conditional statements in order...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
note also parsing direct url links (like https://example.com) is coming soon: https://github.com/executablebooks/markdown-it-py/pull/78
I’m closing this, because in #273
:::
now act exactly the same as```
, which precludes not having the curly braces