Skip to content

[BUG] 脚标插件不兼容问题 #559

@mel0nyrame

Description

@mel0nyrame

提交前检查

Bug 描述

使用hexo-reference或者hexo-footnotes插件时,脚标的序号会重复渲染,原文的脚标也没有中括号,点击脚标时候定位内容的位置也不准。具体内容可以看:
https://mel0nyrame.github.io/2025/08/25/%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/#fnref:3

复现步骤

  1. 安装hexo-reference或者hexo-footnotes插件
  2. 使用md的脚标语法[^1]和[^1]:

预期行为

原文:戒断反应[1]([1]为右上角并且缩小)
结尾:1. 戒断反应.......
点击脚标文章页面能够定位到正确的位置

截图

Image Image

相关日志输出

04:05:37.709 INFO  Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
04:05:37.714 DEBUG Database saved
04:05:38.382 INFO
      +======================================================================================+
      |
             |
      |    _____ _   _ _____ __  __ _____   ____  _____ ____  _____ _____ ___ _   _ _____    |
      |   |_   _| | | | ____|  \/  | ____| |  _ \| ____|  _ \| ____|  ___|_ _| \ | | ____|   |
      |     | | | |_| |  _| | |\/| |  _|   | |_) |  _| | | | |  _| | |_   | ||  \| |  _|     |
      |     | | |  _  | |___| |  | | |___  |  _ <| |___| |_| | |___|  _|  | || |\  | |___    |
      |     |_| |_| |_|_____|_|  |_|_____| |_| \_\_____|____/|_____|_|   |___|_| \_|_____|   |
      |
             |
      |                            current v2.8.5  latest v2.8.5
             |
      |                  https://github.com/EvanNotFound/hexo-theme-redefine                 |
      +======================================================================================+

04:05:38.383 INFO  CDN available: NPMMirror (Recommended)
04:05:38.384 INFO  CDN available: ZStatic
04:05:38.384 INFO  CDN available: CDNJS
04:05:42.552 DEBUG Rendering HTML index: index.html
GET / 200 20.063 ms - -
GET /css/style.css 200 266.820 ms - -
GET /images/wallhaven-wqery6-dark.webp 200 4.640 ms - -
GET /images/wallhaven-wqery6-light.webp 200 4.479 ms - -
GET /img-mine/wechat.jpg 304 1.568 ms - -
GET /img-mine/qq.jpg 304 1.475 ms - -
GET /img-mine/mel0ny-web-logo.png 304 1.573 ms - -
04:05:42.946 DEBUG Rendering HTML index: index.html
GET / 200 12.260 ms - -
GET /img-mine/mel0ny-profile.jpg 304 0.659 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E5%8E%9F%E6%96%871.jpg 200 1.499 ms - -
GET /music/%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%20(%E4%B8%BA%E4%BB%80%E4%B9%88)(feat.%20%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F).lrc 304 0.674 ms - -
GET /music/%E9%AB%98%E7%80%AC%E7%B5%B1%E4%B9%9F%E3%80%81%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F%20-%20%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%20(%E4%B8%BA%E4%BB%80%E4%B9%88)(feat.%20%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F).flac 304 0.425 ms - -
GET /search.json 200 0.272 ms - -
GET /music/%E9%AB%98%E7%80%AC%E7%B5%B1%E4%B9%9F%E3%80%81%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F%20-%20%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%20(%E4%B8%BA%E4%BB%80%E4%B9%88)(feat.%20%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F).flac - - ms - -
04:05:46.301 DEBUG Rendering HTML post: 2025/08/25/高中时期的奇思妙想/index.html
GET /2025/08/25/%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/ 200 10.720 ms - -
GET /images/loading.svg 200 0.556 ms - -
GET /search.json 200 0.278 ms - -
GET /img-mine/mel0ny-web-logo.png 304 0.792 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E9%98%B6%E6%AE%B5%E4%BB%A5%E5%8F%8A%E9%98%B6%E6%AE%B5%E4%BA%BA%E7%94%9F%E7%A4%BA%E6%84%8F%E5%9B%BE.png 200 3.190 ms - -
GET /img-mine/mel0ny-web-logo.png 304 0.451 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E9%98%B6%E6%AE%B5%E7%9C%9F%E7%A9%BA%E7%A4%BA%E6%84%8F%E5%9B%BE.png 200 1.387 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E5%8E%9F%E6%96%873.jpg 200 1.061 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E5%8E%9F%E6%96%872.jpg 200 3.580 ms - -
GET /img-posts/2025-08-25-%E9%AB%98%E4%B8%AD%E6%97%B6%E6%9C%9F%E7%9A%84%E5%A5%87%E6%80%9D%E5%A6%99%E6%83%B3/%E5%8E%9F%E6%96%874.jpg 200 1.194 ms - -
GET /music/%E9%AB%98%E7%80%AC%E7%B5%B1%E4%B9%9F%E3%80%81%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F%20-%20%E3%81%A9%E3%81%86%E3%81%97%E3%81%A6%20(%E4%B8%BA%E4%BB%80%E4%B9%88)(feat.%20%E9%87%8E%E7%94%B0%E6%84%9B%E5%AE%9F).flac 206 1.937 ms - 75527505
GET /img-mine/mel0ny-web-logo.png 304 0.824 ms - -
GET /img-mine/mel0ny-web-logo.png 304 0.380 ms - -
GET /img-mine/mel0ny-web-logo.png 304 1.493 ms - -
GET /img-mine/mel0ny-web-logo.png 304 0.643 ms - -
GET /.well-known/appspecific/com.chrome.devtools.json 404 0.934 ms - 187
GET /css/style.css 200 148.401 ms - -
04:07:01.983 INFO  Catch you later
04:07:02.007 DEBUG Database saved

使用的浏览器

Chrome

操作系统

Windows

浏览器版本

Chrome 139.0.7258.139

优先级

中(尽快解决)

其他信息

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions