Skip to content

v3.7.14: Markdown/HTML search renders multi-name apropos lines

Choose a tag to compare

@chedong chedong released this 11 Jun 07:36
· 153 commits to master since this release

Fixed

  • #129 (part 5): Markdown/HTML 搜索渲染支持多命令拆分

    Markdown 和 HTML(非 JSON)搜索渲染路径仍在使用内联 preg_replace 做链接化,只会匹配行内第一个命令名。多命令行如:

    colorsync.useragent(8), colorsync.usergaent (8) — ColorSync User Agent
    

    只有 colorsync.useragent 被正确链接,第二个命令 colorsync.usergaent 显示为纯文本,且链接指向错误的组合 URL。

    修复后统一使用 parseAproposLines() 拆分为独立 <li> 条目,每个命令都有正确的链接。

Code cleanup

  • 消除 ~40 行 Markdown/HTML 内联 preg_replace 模式匹配代码

Test

  • 296/296 单元和集成测试全部通过