Skip to content

Why is YAML synxtax preffered over Colon syntax for directive blocks? #47

@neilmcculloch-1

Description

@neilmcculloch-1

mdformat-myst (0.3.0) auto corrects

```{admonition}
`:key: val` 

to

```{admonition}
---
key: val
---

But why does it prefer the latter? It seems like the latest myst user documentation suggests the former is preferred here: https://myst-parser.readthedocs.io/en/latest/syntax/roles-and-directives.html#parameterizing-directives-options.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions