after-dark icon indicating copy to clipboard operation
after-dark copied to clipboard

feat: add katex support

Open jcgruenhage opened this issue 4 years ago • 4 comments

This is mostly copy-paste of https://github.com/getzola/even/pull/16.

I tested it locally, works as expected.

I'm still wondering whether zola can do anything to make this less painful, as porting KaTeX rendering to every theme is quite a lot of duplication. This is okay now, but updating will be a major PITA. A solution where zola inserts these would be a lot better IMO.

jcgruenhage avatar Aug 31 '20 19:08 jcgruenhage

There is https://github.com/getzola/zola/pull/1073 but it doesn't seem to build on Windows

Keats avatar Aug 31 '20 19:08 Keats

Ah, amazing, hadn't seen that one yet!

jcgruenhage avatar Aug 31 '20 19:08 jcgruenhage

I'm still wondering whether zola can do anything to make this less painful, as porting KaTeX rendering to every theme is quite a lot of duplication. This is okay now, but updating will be a major PITA. A solution where zola inserts these would be a lot better IMO.

The generalized version of this still holds true though, if you take other client side rendering extensions, like mermaidjs for example.

jcgruenhage avatar Aug 31 '20 19:08 jcgruenhage

I'm trying to add some latex to my page and would prefer not use images. I'm a bit confused what the viable options are (other than images, which is my current fall back). I see katex has a wasm option now. I don't know how long they've had that. I'm mostly asking if anyone already knows before I keep digging.

c-git avatar Dec 04 '23 22:12 c-git