ter icon indicating copy to clipboard operation
ter copied to clipboard

Katex support?

Open 5u4 opened this issue 3 years ago • 4 comments

This is an awesome project!

I am wondering whether it is possible to add Katex support.

After some research, I found out it may be done through changing the marker renderer https://github.com/markedjs/marked/issues/1538#issuecomment-575838181. Now I am stuck on finding a katex binding on deno for translating const katex = require('katex').

I am not familiar with deno. Any help will be appreciated :)

5u4 avatar Feb 11 '22 06:02 5u4

Hi, thanks!

Looks like Katex provides an ESM module: https://katex.org/docs/browser.html#ecmascript-module

In theory, you should be able to import it and use.

kkga avatar Feb 11 '22 08:02 kkga

thanks!

5u4 avatar Feb 12 '22 01:02 5u4

I know this is old but I'd be nice to have a math option in post frontmatter if set to true then it will render katex

thangisme avatar Nov 20 '23 15:11 thangisme

This would be a good enhancement, but at the moment I don't have the bandwidth to implement it. Leaving it here as a potential contribution.

kkga avatar Nov 20 '23 19:11 kkga