caption-fileref-basic

A ^ line immediately after a non-grouped FileRef sets caption on the FileRef node

§6.2 · source

Input

/docs/report.pdf
^ Annual report, 2025

Output AST

- type: FileRef
  path: /docs/report.pdf
  fragment: ""
  query: ""
  caption:
    - type: Text
      value: Annual report, 2025