-
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
feat: add mathematical expressions support #97
base: main
Are you sure you want to change the base?
Conversation
While it worked for some really basic expressions, the fact that both Svelte and KaTeX use curly braces is troublesome. Svelte tries to evaluate expressions like |
I made the dependencies optional as to not bloat kit-docs with unecessary dependencies. This way, if an user needs math expressions, he can just install some optional dependencies and support is already there. In order to use mathematical expressions, one would need to:
To add styling, one would need to:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"
crossorigin="anonymous"
/> |
Adds another markdown-it plugin, markdown-it-texmath, which supports mathematical expressions via KaTeX.