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
suggestion: support latex math expressions using remark-math and rehype-katex #150
Comments
Appreciate your suggestion and effort. |
I followed this tutorial and didn't have this issue @andreyyao https://blog.alexafazio.dev/blog/render-latex-in-astro/ |
@caleb-shelton I just did a fresh install, and it's the same issue. Which version of remark-math and rehype-katex are you using? EDIT: Upon further inspection, I think tailwindcss or the dark mode toggle is not playing right with the katex expressions. I got a temporary fix working by overwriting this css in layouts/PostDetails.astro:
|
@andreyyao I didn't know that issue since I always use light mode. I've found the same issue with yours on my blog. I fixed it using your modification on |
I think support latex math expression in markdown is a good option like the following image.
Thank you
Best Regards
@gyunseo
The text was updated successfully, but these errors were encountered: