-
Notifications
You must be signed in to change notification settings - Fork 304
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
Katex support #33
Comments
I don't know much about these, but according to KaTeX docs here, you can simply create a file {{- if .Content }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>
{{- end }} This should work, it will add KaTeX rendering to every page that has markdown content. |
Thank you, that worked perfectly! |
Any updates on this? I could add this feature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
First of, let me congratulate you for this great theme. Thank you for open-sourcing it.
Would you be so kind as to give me a hand on how to support katex for blog posts that have math?
I tried doing what is in this comment and also what is in this blog post but neither work.
The text was updated successfully, but these errors were encountered: