unitaryfund / unitary.fund

πŸ•ΈοΈ πŸ’› Unitary Fund Website πŸ’› πŸ•ΈοΈ
https://unitary.fund
46 stars 54 forks source link

Render math in blog posts #467

Closed cosenal closed 3 months ago

cosenal commented 3 months ago

Math formulas from blog post now render on the website in the same way as they render on Github markdown preview. This fixes #465.

I followed this quick tutorial: https://www.byteli.com/post/webdev/math_in_astro/

Note: I had to pin the version of remark-math and rehype-katex to slightly older versions, because the latest versions of those packages were not compatible with some other dependencies we have, and updating those other dependencies is out of scope.

Tested with pnpm install && pnpm dev, and then going to http://localhost:3000/posts/2023_qem

Screenshot 2024-03-21 at 14 29 30
vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
unitary-fund-prel βœ… Ready (Inspect) Visit Preview Mar 21, 2024 1:42pm
cosenal commented 3 months ago

@natestemen Whoops, I meant to add you as reviewer, not assignee πŸ€¦πŸ»β€β™‚οΈ Thanks for the quick review!