mark-nested-same-name

Mark permits same-type nesting, including the same name — the opener ::name is distinct from the bare :: closer, so matching is by counting

§5.10 · source

Input

::a ::a ::a ::::::

Output AST

- type: Paragraph
  children:
    - type: Mark
      name: a
      children:
        - type: Mark
          name: a
          children:
            - type: Mark
              name: a
              children: []