denoland / deno_blog

Minimal boilerplate blogging.
MIT License
477 stars 100 forks source link

Add render math functionality #97

Closed KorigamiK closed 1 year ago

KorigamiK commented 2 years ago

I've always had to create pre-rendered svgs to show math on my blogs, so I thought about adding the math rendering directly from the server.

This pull request uses katex to render inline as well as block math directly on the server-side by setting render_math boolean in the post frontmatter.

crowlKats commented 1 year ago

This should rather be done in gfm directly (https://github.com/denoland/deno-gfm/pull/9), so closing in favour of that.