Skip to content

Conversation

@neveler
Copy link
Contributor

@neveler neveler commented Nov 10, 2025

现在不再依赖 baseurl 前缀判断是否需要自动转换链接,插件将处理以下三类链接:

  1. 以 /assets/ 开头的
  2. 以 / 开头并以 .md 结尾的
  3. 以 / 开头且包含 .md# 的

使用 baseurl 来判断是否需要自动转换链接并不可靠,例如当 baseurl 为空时,会导致所有链接都无法进行自动链接处理。
https://docs.hmcl.net/faq.html

@burningtnt
Copy link
Member

我将上述更改 cherry-pick 到了 #327 ,但未能解决相关问题:https://github.com/HMCL-dev/HMCL-docs/actions/runs/19229897556/job/54965760706?pr=327

@neveler
Copy link
Contributor Author

neveler commented Nov 10, 2025

我将上述更改 cherry-pick 到了 #327 ,但未能解决相关问题:https://github.com/HMCL-dev/HMCL-docs/actions/runs/19229897556/job/54965760706?pr=327

该 PR 并非用于解决 #327 而是为了在 baseurl 为空时确保指向 .md 文件的链接能够正常工作。

此外 #327 冲突的原因在于新引入的插件破坏了原本的 {% link %} 渲染逻辑,也就是说即使未合并 #324#327 中的 link 语法也无法正常使用。

@burningtnt burningtnt mentioned this pull request Nov 10, 2025
@neveler
Copy link
Contributor Author

neveler commented Nov 12, 2025

我将上述更改 cherry-pick 到了 #327 ,但未能解决相关问题:https://github.com/HMCL-dev/HMCL-docs/actions/runs/19229897556/job/54965760706?pr=327

Glavo#1

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.

2 participants