From 6fee07df1f4d850ca6946a0854beae55d1c38530 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 17 Jul 2026 10:57:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(markdown):=20=E6=96=87=E7=AB=A0=E9=A1=B5?= =?UTF-8?q?=E8=84=9A=E6=B3=A8=E5=AE=8C=E6=95=B4=E6=94=AF=E6=8C=81(?= =?UTF-8?q?=E8=AF=AD=E4=B9=89=E5=8C=96=20+=20back-link=20+=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 切换到 pulldown-cmark 的 GFM 脚注模式(与 GitHub 行为一致),并用自定义 事件渲染器替换默认输出,补齐语义化结构与无障碍属性: - 解析:Options::all() 同时置 ENABLE_OLD_FOOTNOTES(bit 9|2),使 has_gfm_footnotes() 返回 false 走 OLD 模式。remove(OLD) 会连 ENABLE_FOOTNOTES 一起清掉(OLD 位掩码含 bit 2),故 remove 后须 insert(ENABLE_FOOTNOTES) 单独加回。 - 渲染:事件循环新增 FootnoteReference / Start/End FootnoteDefinition 三个分支。引用处 带 role="doc-noteref";定义处