-
Notifications
You must be signed in to change notification settings - Fork 33
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
Panic when markdown has dollar signs in it #49
Comments
For now, I've disabled the `MathAJax` extension, though I created a stub in nodeProcessing.go for future consideration. Also, replaced the `panic()` call with `fmt.Printf()` when node.(type) does not match any of the supported types. This way, people could report such issues and at least get some useful output, rather than a crash.
Hi @psanford , Thanks for reporting. Could you please try: #50 (I've tested it with your sample input, of course but, would be good for you to run on your full file). If all is well, I'll merge and create a new release.
I agree it's a nice feature. I'll implement it at a later date (perhaps this weekend but not making any promises :)). |
I can confirm that fixes the crash I was seeing. |
Thanks for confirming. Release created. |
The following markdown doc causes mdtopdf to panic:
The panic is:
Seems like the issue is that you have enabled the MathJax extension via
parser.CommonExtensions
but you don't actually support those AST types.I'm not trying to use MathJax so it would be nice if there was an option to override the markdown extensions enabled.
The text was updated successfully, but these errors were encountered: