Hexo: `toc()` 辅助函数中链接被转义

Created on 22 Aug 2020  ·  4Comments  ·  Source: hexojs/hexo

Check List

Please check followings before submitting a new issue.

  • [ ] I have already read Docs page & Troubleshooting page
  • [ ] I have already searched existing issues and they are not help to me
  • [ ] I examined error or warning messages and it's difficult to solve
  • [ ] Using the latest version of Hexo (run hexo version to check)
  • [ ] Node.js is higher than minimum required version

Expected behavior

Actual behavior

How to reproduce?

  • Step1
  • Step2
  • etc...

Is the problem still there under "Safe mode"?

Environment & Settings

Node.js & npm version(node -v && npm -v)

$ node -v && npm -v
v12.18.3
6.14.6

Your site _config.yml (Optional)


Your theme _config.yml (Optional)


Hexo and Plugin version(npm ls --depth 0)

$ npm ls --depth 0
[email protected] D:\code\hexo-theme-arknights
+-- UNMET DEPENDENCY hexo@^5.0.0
+-- UNMET DEPENDENCY hexo-browsersync@^0.3.0
+-- UNMET DEPENDENCY hexo-deployer-git@^2.1.0
+-- UNMET DEPENDENCY hexo-filter-mathjax@^0.5.3
+-- UNMET DEPENDENCY hexo-generator-archive@^1.0.0
+-- UNMET DEPENDENCY hexo-generator-category@^1.0.0
+-- UNMET DEPENDENCY hexo-generator-index@^2.0.0
+-- UNMET DEPENDENCY hexo-generator-tag@^1.0.0
+-- [email protected]
+-- UNMET DEPENDENCY hexo-renderer-marked@^3.0.0
+-- UNMET DEPENDENCY hexo-renderer-sass@^0.4.0
+-- UNMET DEPENDENCY hexo-renderer-ts@^1.2.5
+-- UNMET DEPENDENCY hexo-server@^2.0.0
`-- UNMET DEPENDENCY hexo-tag-aplayer@^3.0.4

npm ERR! missing: hexo@^5.0.0, required by [email protected]
npm ERR! missing: hexo-browsersync@^0.3.0, required by [email protected]
npm ERR! missing: hexo-deployer-git@^2.1.0, required by [email protected]
npm ERR! missing: hexo-filter-mathjax@^0.5.3, required by [email protected]
npm ERR! missing: hexo-generator-archive@^1.0.0, required by [email protected]
npm ERR! missing: hexo-generator-category@^1.0.0, required by [email protected]
npm ERR! missing: hexo-generator-index@^2.0.0, required by [email protected]
npm ERR! missing: hexo-generator-tag@^1.0.0, required by [email protected]
npm ERR! missing: hexo-renderer-marked@^3.0.0, required by [email protected]
npm ERR! missing: hexo-renderer-sass@^0.4.0, required by [email protected]
npm ERR! missing: hexo-renderer-ts@^1.2.5, required by [email protected]
npm ERR! missing: hexo-server@^2.0.0, required by [email protected]
npm ERR! missing: hexo-tag-aplayer@^3.0.4, required by [email protected]

Your package.json package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "5.1.0"
  },
  "dependencies": {
    "hexo": "^5.0.0",
    "hexo-browsersync": "^0.3.0",
    "hexo-deployer-git": "^2.1.0",
    "hexo-filter-mathjax": "^0.5.3",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^2.0.0",
    "hexo-generator-tag": "^1.0.0",
    "hexo-render-pug": "^2.1.4",
    "hexo-renderer-marked": "^3.0.0",
    "hexo-renderer-sass": "^0.4.0",
    "hexo-renderer-ts": "^1.2.5",
    "hexo-server": "^2.0.0",
    "hexo-tag-aplayer": "^3.0.4"
  }
}

Others


@LQ2N$3M)5{}S_3`JC1%K4F

question

Most helpful comment

All 4 comments

It is the desired behavior. Personally I don't see why it become a issue.

中文链接无法跳转了
Chinese link cannot be redirected

这个链接 中,在升级到 Hexo5 右边的目录不会跳转了。
This link After upgrading to Hexo5, the directory on the right will not jump.

截屏2020-08-23 上午1 44 30

The default behavior of links is changed by aplayer. I'm closing this issue because the bug is caused by aplayer and has nothing to do with Hexo.

Was this page helpful?
0 / 5 - 0 ratings