-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in command line not able to escape single quote character in mathml #444
Comments
CLI issues belong in its repository https://github.com/mathjax/mathjax-node-cli But I suspect it's just the apostrophe in the mml expression that is closing the argument. |
Peter is correct, the problem is the internal
instead. |
Sorry I am already tried the double quotes also which I forgot to mention. That also throws error if the mathml contains attributes.
|
Yes, these are the issues you face when trying to pass content containing quotation marks to command-line programs. One solution would be to use single quotes for the attribute values
as this is still valid MathML. Alternatively, you can replace the internal
But you will have to modify the original string in some way if it contains both |
In any case, none of these are problems with |
Thank you! |
Error: bash: syntax error near unexpected token `<'
Not able to escape single quote character
node /usr/local/lib/node_modules/mathjax-node-cli/bin/mml2svg '<math><mi>μ</mi><msup><mrow><mo>'</mo></mrow><mrow><mn>2</mn></mrow></msup></math>' > eqn.svg
The text was updated successfully, but these errors were encountered: