feat(markup): prefer [key](collection) for map and list access

Add GFM link-shaped index as the primary get surface, keep footnote
index as transitional compatibility, and align the coffee example.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 10:44:18 +08:00
1 parent 5e74ff39f2
commit 4a1c9c48a2
12 files changed
+235 -23

No files matched your search

+5 -2
View File
@@ -167,9 +167,12 @@
---
## 4. 脚注取元(提案)
## 4. 脚注取元(历史 · 过渡保留)
### 4.1 为何用脚注外形
> **主语法已切换为链接形** `[键](集合)`,见 [collection-access-link.md](../design/collection-access-link.md)。
> 本节 `` 集合[^键] `` 仍由运行时接受;**新代码请写链接形**。
### 4.1 为何曾用脚注外形
- Markdown 已有 `[^…]` 引用形态,读者不陌生。
- 避免 `篮子[0]` 与链接 / 图片语法纠缠。