发布日期: 2025-01-22
版本号: v0.142.0

此版本主要为错误修复版本,但因涉及图片文件缓存问题的修复(详见#13273、#13272),故定为小版本更新而非补丁版本。由于修复需重置大量生成图片的哈希值,借此机会简化了哈希生成逻辑及图片命名规则。

主要修复

  • 修复启用排版扩展后渲染钩子PlainText的异常问题
  • 解决Go 1.24编译兼容性问题
  • 修正短代码错误提示的上下文信息
  • 修复图片文件缓存键值的两个核心问题

功能优化

  • 新增支持处理内联HTML注释
  • 安全模式下禁用对潜在不安全HTML注释的警告
  • 为二维码短代码添加加载属性配置

更新内容 (中文)

此版本主要是一个错误修复版本。由于修复了图片文件缓存问题(参见 #13273 #13272),此次发布定为次要版本而非补丁版本。修复这些问题需要我们破坏许多生成图片的哈希值,因此我们借此机会简化了哈希值/图片文件名的生成方式。

Bug 修复

  • 修复启用排版扩展时渲染钩子的 PlainText 问题 6aa72acaf @bep #13286 #13292
  • 修复使用 Go 1.24 的构建问题 4b0c194fb @flyn-org
  • tpl/tplimpl: 修复短代码错误消息中的上下文问题 8de4ffb29 @jmooring #13279
  • resources: 修复 2 个图片文件缓存键问题 1f5a15aba @bep #13273 #13272

改进

  • 新增处理行内 HTML 注释功能 637995ba8 @bep
  • 当 unsafe=false 时不再对潜在不安全的 HTML 注释发出警告 f1de5d2a0 @bep #13278
  • tpl: 为 qr 短代码添加 loading 属性 889711366 @nfriedli

更新内容 (原始)

This is is mostly a bug fix release. It’s a minor and not a patch release because of the image file cache issue fixes (see #13273 #13272). Fixing this required us to break the hashes for many of the generated images so we used this opportunity to simplify how we generate these hashes/image filenames.

Bug fixes

  • Fix render hook’s PlainText with typographer extension enabled 6aa72acaf @bep #13286 #13292
  • Fix build with Go 1.24 4b0c194fb @flyn-org
  • tpl/tplimpl: Fix context in shortcode error messages 8de4ffb29 @jmooring #13279
  • resources: Fix 2 image file cache key issues 1f5a15aba @bep #13273 #13272

Improvements

  • Also handle inline HTML comments 637995ba8 @bep
  • Do not warn on potentially unsafe HTML comments when unsafe=false f1de5d2a0 @bep #13278
  • tpl: Add loading attribute to qr shortcode 889711366 @nfriedli

下载链接