News for hackers. Stuff that matters.

yagarea

Thank you
I did some benchmarks and found out that the real slowdown is not the LaTeX rendering itself, but calling KaTeX from Ruby. In the previous version, every LaTeX expression meant a separate KaTeX call. Now, I find all expressions on a page and render them in a single bulk KaTeX call. As a result, my personal blog—which contains ~5k LaTeX expressions with nothing cached now builds in 7 seconds instead of 92 seconds.

I also added more configuration options and included some bug fixes. Here is full changelog: https://github.com/yagarea/jektex/blob/master/changelog.md

This rewrite is already published on RubyGems: https://rubygems.org/gems/jektex

Re:Ask HN: What open source projects need help? on Sunday November 17, 2024 @02:14PM (#42166255)
JekTeX - A Jekyll plugin for fast server-side cached LaTeX rendering, with support for macros. ( https://github.com/yagarea/jektex )

I would like to split it to the multiple files and make some unit tests. + I have two issues that should be easy to fix but I have no time to try to solve them because my uni takes more time than I would like.

Show HN: Jektex – Fast server side rendering of latex for Jekyll

https://github.com/yagarea/jektex

Hello! This is my first attempt of creating, publishing and maintaining my own package.I have a blog with something around 4000 latex expressions. Client side rendering using latex was super slow and some phones did not render it properly. I tried some KaTeX plugins for server side rendering but they were painfully slow (on my laptop it took more than 5 min to build). So I decided to learn some...

( Read More... | no comments | 2 points | on HN )