v0.151.0

gohugoio/hugov0.151.0Oct 2, 2025by bep

AI Summary

A feature release introducing HTML to Markdown transformation, terminal progress reporting, and new configuration options for Markdown footnotes.

Key Highlights

  • New transform.HTMLToMarkdown template function.
  • OSC 9;4 progress reporting for terminals (Ghostty, Windows Terminal).
  • New config options for Markdown footnotes (backlinkHTML, auto-prefixing).

New Features

  • transform.HTMLToMarkdown function.
  • OSC 9;4 progress reporting.
  • Enhanced footnote extension options.

Full Release Notes

Some notable new features in Hugo v0.151.0 are:

* New [transform.HTMLToMarkdown](https://gohugo.io/functions/transform/htmltomarkdown/) template function. One possible use case would be to provide [LLM friendly content](https://llmstxt.org/).
* Hugo now reports OSC 9;4 progress when building; progress bars/indicators are supported by terminals such as [Ghostty](https://ghostty.org/docs/install/release-notes/1-2-0#graphical-progress-bars) on Macos and Linux, Windows terminal.
* Several new [config options](https://gohugo.io/configuration/markup/#footnote) for Markdown foot notes.

## Note

* transform/livereloadinject: Skip livereload.js injection if no tags found (note) 7fd6762c1 @AndrewChubatiuk 

## Improvements and bug fixes

* Fix file caching for 404 responses in resources.GetRemote 03b33ecb5 @bep #14019 
* markup/goldmark: Enhance footnote extension with backlinkHTML option b462980ac @jmooring #11434 
* markup/goldmark: Enhance footnote extension with auto-prefixing option 47678d8cb @jmooring #8045 
* Adjust the terminal progress reporter a little 510d98b77 @bep 
* Add transform.HTMLToMarkdown c5dca3bde @bep #13946 
* Report OSC 9;4 progress when building ec463c097 @bep 
* tpl: Workaround s390x precision of Atan and Tan 105d3bc32 @toddy15 
* cache/httpcache: Add respectCacheControlNoStoreInResponse and respectCacheControlNoStoreInRequest options 3e46ba5ce @bep #13990 
* common/hreflect: Speed up IsTrutfulValue 4d1303512 @bep 

## Dependency Updates

* build(deps): bump google.golang.org/api from 0.248.0 to 0.251.0 584f052f3 @dependabot[bot] 
* build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfront b76d71761 @dependabot[bot] 
* build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.38.1 to 1.39.2 4d2743e4c @dependabot[bot] 
* build(deps): bump golang.org/x/tools from 0.36.0 to 0.37.0 c20f70d9a @dependabot[bot] 
* build(deps): bump github.com/spf13/afero from 1.14.0 to 1.15.0 1b556216a @dependabot[bot] 
* build(deps): bump github.com/tdewolff/minify/v2 from 2.24.2 to 2.24.3 106c8e6de @dependabot[bot] 
* build(deps): bump github.com/evanw/esbuild from 0.25.9 to 0.25.10 9928122eb @dependabot[bot] 
* build(deps): bump golang.org/x/text from 0.28.0 to 0.29.0 9943c1bef @dependabot[bot] 
* build(deps): bump github.com/olekukonko/tablewriter from 1.0.9 to 1.1.0 766757310 @dependabot[bot] 
* build(deps): bump github.com/spf13/cast from 1.9.2 to 1.10.0 d71c07cf3 @dependabot[bot]