1bl4z3r / hermit-V2

Continuing Hermit's legacy to be minimal and fast theme
https://1bl4z3r.github.io/hermit-V2/
MIT License
91 stars 38 forks source link

LaTeX not functional #15

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello! While going through the demo website I've noticed that the LaTeX is no longer working and isn't showing up anymore. It can be seen here: https://1bl4z3r.github.io/hermit-V2/posts/typography/. Here is what I'm seeing on my end: https://i.imgur.com/xKxJfZa.png I am using LibreWolf on Windows 10.

1bl4z3r commented 1 year ago

Hi @DannyLeWasTaken,

I too have seen this. It was broken from original Hermit theme. In addition to LaTeX, highlight syntax is also not working. I am unsure if this a Goldmark thing or some config should be provided.

Rest assured, I will try to fix LaTeX issue by this weekend. 🙃

1bl4z3r commented 1 year ago

Hi, Its me again.

I was going though many Hugo blogs and discourse in the morning. I found that there are two implementations for LaTeX for web use : Source : katex vs mathjax - Trust In Geeks

I'm thinking about implementing MathJax as it is comprehensive. Hugo is fast, so I do not believe that MathJax's slowness is going to affect much.

That's the update for now

1bl4z3r commented 1 year ago

I was building up a concept and looking for a good way to implement. This is what I was able to cook up. As you can see TeX is rendered, but many fonts are missing. I did not know there is a font library

image

1bl4z3r commented 1 year ago

Yayy!!!

I switched from chtml render to svg render. Console is clear. I love it

image

1bl4z3r commented 1 year ago

Hello @DannyLeWasTaken,

I have pushed new changes with LaTeX implementation. Kindly check if you are able to use LaTeX.

I am keeping this Issue open for a week, in-case there is any issues.

1bl4z3r commented 1 year ago

Closing this Issue, as no response was provided. Kindly re-open if issue persists