Input
= Hello {#h1} Output AST
- type: Section
level: 1
heading:
- type: Text
value: Hello
attributes:
- key: id
value: h1 Last {attrs} token on the heading line is claimed by the Section node
Input
= Hello {#h1} Output AST
- type: Section
level: 1
heading:
- type: Text
value: Hello
attributes:
- key: id
value: h1