github gohugoio/hugo v0.166.0

2 hours ago

Note

  • tpl/transform: Bump fileCacheEntryVersion in transform.ToMath (note) 8d88b8b @bep #15267
  • resources/images: Bump formatVersionNumbers.PNG and fix version cache busting for images.Filter (note) d19e0a4 @bep #12536 #12543 #15266
  • warpc/js: Upgrade katex to 0.18.4 (note) ec52e63 @bep #15254
  • hexec: Fail on symlinks that escape the Node.js permission paths c05c012 @bep
  • config/security: Deny text/org content by default e6abb9c @bep
  • config/security: Add http.proxyFromEnvironment and document the resolved address check 6a2a955 @bep #15301 #15302

When upgrading to Hugo v0.166.0, sites using transform.ToMath with the output option set to html or htmlAndMathml must update the KaTeX stylesheet referenced in their template(s) to version 0.18.4 or higher. Using older CSS versions like 0.16.21 will cause certain mathematical or chemical expressions to render incorrectly.

Example update:

- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.18.4/dist/katex.min.css">

See these examples:

Bug fixes

Improvements

Dependency Updates

Don't miss a new hugo release

NewReleases is sending notifications on new releases.