Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side rendering of math equations #350

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deining
Copy link

@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