I have merged experimental rich text input support to provide a superset of substring formatting functionality included in citeproc-js (though not defined in the CSL spec), but here implemented using native JSON data structures.
Here’s the schema file that defines the model (aside: it’s YAML because I hate hand-writing JSON, but it’s trivial to convert to JSON; it’s just a YAML representation of a JSON Schema, and some tools support YAML directly for this).
In short, this would offer an alternative to pseudo HTML, and also add support for math.
I have designated it experimental because we need developers to vet and implement it, and provide suggestions for the spec.
So a request to the developers here: please do just this, and let us know what you think.
Should we include it in the main JSON schema for 1.1?
Will you commit to supporting it if we do?
By “commit,” I mean if you now support the citeproc-js substring markup, can you also support this, so we can define this as what compliant implementations should or must support going forward? If you don’t already have rich text support, can you add this, or some subset of it?
And on that note, for the spec, what should we say “support” means? How should processors deal with the math content, for example?
Is mathml or tex even the right solution for math here, or should be have a single option to use a unicode math representation? Looking around quickly, it seems there are libraries to convert TeX to unicode, so am now second-guessing the initial decision here.