Skip to content

Allow for :::admonition syntax (without curly brackets) #271

Closed
@choldgraf

Description

@choldgraf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions