Skip to content

Conversation

deining
Copy link
Contributor

@deining deining commented Feb 18, 2025

This PR brings server side rendering of math equations via hugo's built-in KaTeX rendering engine.

Advantages:

  • server side rendering (instead of client side rendering)
  • no JS needed for math content
  • typesetting of formulae using LaTeX standard syntax, no escaping of delimiters needed
  • no need to activate math mode in frontmatter any more
  • internal rendering engine supports rendering of chemical equations out of the box (as of hugo version 0.144.0)
  • no need to include KaTeX dependencies any more

Disadvantages:

  • minimum required hugo version is now 0.141.0

I hope you like this PR.

@deining deining mentioned this pull request Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant