-
Notifications
You must be signed in to change notification settings - Fork 155
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 to use it in native JS? #42
Comments
A little late but i just made this in my own project. It's part of a markdown project but fairly contained so it might be useful to you. Clone this repo https://github.com/markg85/static-hedgedoc and pull out the Then it's just as simple as: import markdownIt from 'markdown-it'
import { KaTeX } from 'marks-plugins'
const md = markdownIt().use(KaTeX) Do look at my demo html code to get these paths and js in order. What this does is essentially the latest KaTeX version wrapped in this |
@waylonflinn Would you be open to a PR that is modernizing this code (just uses ESM) and embeds katex in it's repository to make it usable in a stand-alone manner? If you're not planning on maintaining this anymore then i'd be fine in taking over this repo. I don't really plan to maintain it other then to keep it working. To me it's just one of many plugins that i'd like to keep working in my own static markdown parser project :) |
markdown-it-katex How to use it in native JS?
The text was updated successfully, but these errors were encountered: