ast
Print the syntax tree parsed out of a document.
Writes { path, frontmatter, ast, diagnostics } as JSON to stdout.
One file at a time; a glob matching several errors with exit 2.
The AST is unstable during 0.x
Its shape carries no compatibility promise and can change in a minor release. Do not build tools against it as a stable interface. See the compatibility promise on the install page.
Flags that do nothing here
When it is useful
Debugging. When a directive is not doing what you expect, ast shows exactly what the parser made of it.
Day-to-day writing never needs it.