In the experimental solution we settled on, the result is a native JSON data structure; the unambiguous target for any parsing.
Aside: these days, YAML and JSON are effectively interchangeable. Our JSON schemas can validate a YAML variant.
So despite the syntax differences, we’re saying for csl processors, rich text is a nested array of strings and formatted objects.
In YAML:
title:
- A title with tex math
- math-tex: x=y^2
This is also valid though:
title: A title
But, there’s a reason I marked it “experimental”: we need feedback.