Skip to content
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

add support for katex? #98

Open
sakgoyal opened this issue Aug 1, 2022 · 3 comments
Open

add support for katex? #98

sakgoyal opened this issue Aug 1, 2022 · 3 comments

Comments

@sakgoyal
Copy link

sakgoyal commented Aug 1, 2022

I wonder if its possible to add support for katex math rendering. markdown is quite limited and I really want a way to be able to display math properly. Im going to be writing up blog posts on lots of math heavy topics so being able to render equations is extremely useful.
I would strongly perfer to avoid javascript if possible. I want the least amount of js possible on my site.

@ChiBei
Copy link

ChiBei commented Aug 23, 2023

Could you please support Latex?

@SydianAndrewChen
Copy link

Also in need of latex.

@SydianAndrewChen
Copy link

Just figure out how to add latex quickly. Got help from this post.

In the markdown file that requires latex, add this code after the front matter:

---
title: some title
tags: [some tags]
style: fill
color: primary
description: some description
---

<script>
    MathJax = {
        tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
        }
    };
    </script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
</script>    

# Write some latex here. It should appear normal now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants