caption-filerefgroup-basic

A ^ line immediately after the last member of a FileRefGroup sets caption on the group, not the last child

§6.2

Input

/photos/a.png
/photos/b.jpg
^ Two photos from the event

Output AST

- type: FileRefGroup
  group: image
  caption:
    - type: Text
      value: Two photos from the event
  children:
    - type: FileRef
      path: /photos/a.png
      fragment: ""
      query: ""
    - type: FileRef
      path: /photos/b.jpg
      fragment: ""
      query: ""