generated from executablebooks/markdown-it-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
$$
Ax = b
$$ (math)
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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request