Input
/photos/a.png
/photos/b.jpg
^ First group caption
/photos/c.png
^ Second group caption Output AST
- type: FileRefGroup
group: image
caption:
- type: Text
value: First group caption
children:
- type: FileRef
path: /photos/a.png
fragment: ""
query: ""
- type: FileRef
path: /photos/b.jpg
fragment: ""
query: ""
- type: FileRefGroup
group: image
caption:
- type: Text
value: Second group caption
children:
- type: FileRef
path: /photos/c.png
fragment: ""
query: ""