chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
577 stars 262 forks source link

[Bug] Inline MathJax/Katex doesn't work #415

Open asitav-sen opened 1 year ago

asitav-sen commented 1 year ago

I confirm:

Hugo version

0.108.0

Where is this bug showing up?

In the browser: Hugo builds the site, but something doesn't look right.

Operating system

Mac OS Ventura

Browser (if applicable)

All

Current behavior

Inline mathjax doesn't work. Works otherise. i.e. $$ works but $.. and \(.. doesn't work.

Screenshot 2023-01-21 at 12 53 54 PM

Expected behavior

Should work with $

Steps to reproduce

This works $$ \overbrace{300x_{1} + 260x_{2} + 220x_{3} + 180x_{4}}^{\text {Revenue from Sales}} - \underbrace{(8 y_{1} + 6 y_{2})}_{\text {Cost of Labour}} $$

This doesn't but should work.

where $x_n$ are the number of products to produce each month and $y_n$ are the hours of labour to purchase (1 for skilled and 2 for unskilled)

Relevant log output

No response

Related code

No response

Preferred solution

No response

Other information

No response

onweru commented 1 year ago

@asitav-sen, MathJax/Katex functionality are handled by third-party scripts. It's not something we control directly on the theme. To fix this sort of 'bug', you will need to tinker with options provided by those javascript libraries.