fileref-query-and-fragment

When both a query string and a fragment are present, src includes the query string and fragment is split off at

§4.11 · source

Input

/path/to/file.ext?q=value#section-id

Output AST

- type: FileRef
  path: /path/to/file.ext?q=value
  query: ?q=value
  fragment: section-id