Notice that \pmod is just passed through to the MathML. In LaTeX, the command puts parentheses around “mod n”, where n is the argument. So the MathML output should be closer to this (taken from another converter, edited to match the latex2mathml output, and pretty-printed for human readers):
I'd be willing to contribute a PR if you tell me where in the repo to focus. I gather I need to add an element to commands.COMMANDS_WITH_ONE_PARAMETER, but not quite sure how it gets implemented.
Hello, and thank you for writing this package! It's been serving me well up to now.
The
convert
function doesn't recognize the\pmod
command:Notice that
\pmod
is just passed through to the MathML. In LaTeX, the command puts parentheses around “mod n”, where n is the argument. So the MathML output should be closer to this (taken from another converter, edited to match thelatex2mathml
output, and pretty-printed for human readers):I'd be willing to contribute a PR if you tell me where in the repo to focus. I gather I need to add an element to
commands.COMMANDS_WITH_ONE_PARAMETER
, but not quite sure how it gets implemented.