Skip to content

Server side rendering of math equations#350

Open
deining wants to merge 1 commit intoschnerring:mainfrom
deining:embedded-katex
Open

Server side rendering of math equations#350
deining wants to merge 1 commit intoschnerring:mainfrom
deining:embedded-katex

Conversation

@deining
Copy link
Copy Markdown
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