⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 398: Add ID Attributes to Headings in markdownToHtml

未着手 ← タスク一覧

Task 398: Add ID Attributes to Headings in markdownToHtml

Status: DONE

Summary

The markdownToHtml function in templates.ts renders headings without id attributes, making intra-page anchor links impossible. For example, #航法系不一致の物理的原因 in a link won't resolve because the <h3> tag has no id. Add slugified IDs to all rendered headings to enable anchor linking.

Rationale

Implementation

  1. In markdownToHtml, add id attribute to all heading tags using the existing slugify function
  2. Verify no duplicate IDs are generated
  3. Test that anchor links resolve correctly