Replies: 6 comments
-
Appreciate your suggestion and effort. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I followed this tutorial and didn't have this issue @andreyyao https://blog.alexafazio.dev/blog/render-latex-in-astro/ |
Beta Was this translation helpful? Give feedback.
-
@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:
|
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
Convert this issue into a discussion for future reference. |
Beta Was this translation helpful? Give feedback.
-
I think support latex math expression in markdown is a good option like the following image.
![image](https://private-user-images.githubusercontent.com/48322716/275338419-260bd039-ba30-4833-99da-4551ac0ac1ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTYxNzIsIm5iZiI6MTczODk5NTg3MiwicGF0aCI6Ii80ODMyMjcxNi8yNzUzMzg0MTktMjYwYmQwMzktYmEzMC00ODMzLTk5ZGEtNDU1MWFjMGFjMWVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA2MjQzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmMWNkNWI2NWZhMDAzNTAzMTg0ZmQwYzFjMmRkYjI2ZjdiOTgzODA5OTUxNTgwYjIxYWI5ODdhNjQ1YzI1NjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4wbCNnPWPXqJhabr0l-DWXzYX3nrT_x_rRaU2hm7nnk)
Thank you
Best Regards
@gyunseo
Beta Was this translation helpful? Give feedback.
All reactions