Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

脚注由于空格导致的渲染故障与脚注赋值和超链接赋值冲突 #1160

Open
2 of 3 tasks
StonePick opened this issue Dec 4, 2024 · 0 comments
Open
2 of 3 tasks
Labels
🐛 bug Unexpected problem or unintended behavior

Comments

@StonePick
Copy link

StonePick commented Dec 4, 2024

请确认

  • 是当前最新的 Release 版本
  • 本地 hexo clean && hexo s,并且清除浏览器缓存,仍可复现
  • 已经排除是其他 Hexo 插件影响

Bug 描述

  • 当脚注赋值使用空格时出现渲染错误;
  • 脚注定义会与超链接定义产生冲突。
  • 脚注中似乎不能继续使用链接(未验证)

_config.fluid.yml

footnote:
    enable: true
    header: ''

安装的依赖(pachage.json):

"dependencies": {
    "hexo": "^7.3.0",
    "hexo-deployer-git": "^4.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^4.0.0",
    "hexo-generator-json-content": "^4.2.3",
    "hexo-generator-tag": "^2.0.0",
    "hexo-generator-i18n": "^0.0.10",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.3.0",
    "hexo-renderer-pug": "^3.0.0",
    "hexo-renderer-stylus": "^3.0.1",
    "hexo-server": "^3.0.0",
    "hexo-theme-landscape": "^1.0.0"
  }

复现步骤

该 Bug 复现步骤如下:

Mi aliquam scelerisque, fermentum ultricies, morbi porta leo venenatis habitasse libero.[^1]

[^1]: Fermentum eros tempor viverra, nisi urna aliquet, mauris dictum platea bibendum integer ipsum vel ut.

在生成的HTML页面中,脚注会变成<span class=”hint–top hint–rounded” aria-label="Fermentum eros tempor viverra, nisi urna aliquet, mauris dictum platea bibendum integer ipsum vel ut.">[1],并以上标的形式显示在文本中。

注意上文末尾的[1]。如果md文件中有对超链接[1]的赋值,则上文的[1]会指向该链接,而非页面尾部。

部署页面:https://stonepick.github.io/en/2024/12/03/Multilingual-Support-Completed/

截图

image

@StonePick StonePick added the 🐛 bug Unexpected problem or unintended behavior label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant