-
Notifications
You must be signed in to change notification settings - Fork 137
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
How do I use the Katex math renderer? #48
Comments
Hello. Just tested this code with Parcel and everything works well. If you are using webpack, make sure that file-loader is configured properly so that KaTeX can load its font files (the files' suffix can be |
Thanks for the quick response. I've added the webpack file-loader with a test for The webpack build didn't error before I added the test for the font files, so I don't think it's trying to include any fonts. Although I've got the |
Maybe webpack optimized and removed the imported powerpack because of no reference. Try: -import * as katex from 'hypermd/powerpack/fold-math-with-katex';
+import 'hypermd/powerpack/fold-math-with-katex'; |
Yes, that worked! |
fix: Fixed front-matter style
Hi
I'm trying to use the Katex math renderer in my HyperMD editor, but I must be missing something.
I've imported the powerpack:
and I'm instantiating my editor as follows:
If I then type
in my editor, I get the uppercase Gamma, but neither of the uppercase Alpha nor Beta.
How do I force the editor to use Katex rather than the default math renderer?
Thanks
Tony
The text was updated successfully, but these errors were encountered: