named-block-attrs

Attributes on the opening ::: line are attached to the NamedBlock node

§4.13 · source

Input

:::callout {.warning #note1}
Content
:::

Output AST

- type: NamedBlock
  name: callout
  attributes:
    - key: class
      value:
        - warning
    - key: id
      value: note1
  children:
    - type: Paragraph
      children:
        - type: Text
          value: Content