Closed fwkoch closed 2 years ago
makes it required (with an implied default of true).
Why does this need to be required? I don't think this should be the case. Definitely +1 for having it in the schema 👍, but I think processors of the AST can decide what the implied default is, probably via configuration available to the user
In general, I would say that most fields that are boolean, should also be allowed to be undefined
.
This is true of other things in mdast, such as List.ordered
and List.spread
This PR is to address numbering of different node types upon render, when authors want sequential figure / table / equation / header numbers (as can be done in latex / pandoc / sphinx). While numbers themselves will be added after the fact as a transform on the AST, we do need to specify if nodes should be
numbered
.Previously, we had a small start at this:
containers
had an optionalnumbered
property. This PR adds that property toheadings
andmath
and also makes it required (with an implied default oftrue
).