question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow for `:::admonition` syntax (without curly brackets)

See original GitHub issue

Right 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsewellcommented, Nov 16, 2020

note also parsing direct url links (like https://example.com) is coming soon: https://github.com/executablebooks/markdown-it-py/pull/78

0reactions
chrisjsewellcommented, Dec 17, 2020

I’m closing this, because in #273 ::: now act exactly the same as ```, which precludes not having the curly braces

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found