attr-strip-paragraph-trailing

Whitespace immediately before a consumed trailing {attr} on a paragraph end is stripped from the preceding Text — Paragraph attrs claim the slot via scope-chain

§12.1

Input

paragraph text  {.p}

Output AST

- type: Paragraph
  attributes:
    - key: class
      value:
        - p
  children:
    - type: Text
      value: paragraph text