For the default rule name, it would be great if we could have some consistency with dollarmath package? Maybe math_block_amsmath? Or simply make it a math_block and add some metadata to the token to indicate that it is AMS?
It would be great to have consistency between:
$$
\begin{equation}
Ax = b
\end{equation}
$$ (math)
and
\begin{equation}
\label{math}
Ax = b
\end{equation}
and
```{equation}
:label: math
Ax = b
```
and
In terms of downstream packages not having to know the intricacies of how the math was parsed, this would mean the tokens in all cases would be something close to:
token.type = 'math_block'
token.content = 'Ax = b' || '\begin{...'
token.meta = {amsmath: true, label: 'math', numbered: true}
Maybe optionally strip out equation environments and parse simple label information. In the future as well, as packages may want to label things on their own.
For the default rule name, it would be great if we could have some consistency with dollarmath package? Maybe
math_block_amsmath? Or simply make it amath_blockand add some metadata to the token to indicate that it is AMS?It would be great to have consistency between:
and
and
and
In terms of downstream packages not having to know the intricacies of how the math was parsed, this would mean the tokens in all cases would be something close to:
Maybe optionally strip out
equationenvironments and parse simple label information. In the future as well, as packages may want to label things on their own.