DOC-FULL-012A P1 | Markdown 解析完整性验收 【status:todo】 #85

Closed
opened 2026-06-07 11:45:17 +08:00 by wangdl · 2 comments
Owner

M-DOC-FULL v2 里程碑 issue。

## Fixture 测试:complex_markdown.md。验证 8 种 block、blockId 稳定、heading level、code language、table 结构、image alt/src。明确 Link 是 inline 非 block。 M-DOC-FULL v2 里程碑 issue。
wangdl added this to the M-DOC-FULL:Document Runtime 完整阅读内核与学习事件协议 milestone 2026-06-07 11:45:17 +08:00
wangdl changed title from DOC-FULL-012A P1 | Markdown 解析完整性验收 to DOC-FULL-012A P1 | Markdown 解析完整性验收 【status:todo】 2026-06-07 19:15:09 +08:00
Author
Owner

审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。

本 Issue: Fixture complex_markdown.md 不存在。blockId 稳定性未验证。

状态: status:todo
工作类型: work:test

## 审查结论:document runtime 当前有文件类型识别/MaterialType/PreviewMode/DocumentInfo(基本)/Markdown解析/Text解析/ImageMeta/Search(V1 Markdown+Text)/NoteAnchor(V1)/ReadingEvent(V1)/ReadingPosition(V1)/EventBuffer(V1基础)/iOS构建/UniFFI绑定/docs。但 V2 核心模型(ReadingSession/EventV2/ActiveTimeTracker)不存在,EventBuffer 缺 ack/failed,Position 缺 camelCase+clamp,PDF/EPUB/Office 为 stub,测试覆盖不足 V2。 **本 Issue**: Fixture complex_markdown.md 不存在。blockId 稳定性未验证。 **状态**: status:todo **工作类型**: work:test
Author
Owner

验收完成

验收内容

  • 8 种 block 全部解析:Heading (h1/h2/h3) / Paragraph / List (ordered+unordered) / CodeBlock (rust) / Quote / Table (headers+rows) / Image (src+alt) / HorizontalRule
  • blockId 稳定性:所有 block 有非空 UUID,唯一性验证通过
  • Heading level:h1/h2/h3 分别验证
  • Code language:rust 语言标记正确
  • Table 结构:headers 非空 + rows 列宽匹配
  • Image alt/src:alt 存在 + src 非空

新增

  • fixtures/markdown/complex_markdown.md — 含全部 8 种 block 的复杂文档
  • markdown.rs: test_fixture_complex_markdown — 全量验收测试

验证

cargo test test_fixture_complex_markdown — passed
cargo test markdown — 11 passed (含全部 8 种 block 类型)
## 验收完成 ### 验收内容 - [x] 8 种 block 全部解析:Heading (h1/h2/h3) / Paragraph / List (ordered+unordered) / CodeBlock (rust) / Quote / Table (headers+rows) / Image (src+alt) / HorizontalRule - [x] blockId 稳定性:所有 block 有非空 UUID,唯一性验证通过 - [x] Heading level:h1/h2/h3 分别验证 - [x] Code language:rust 语言标记正确 - [x] Table 结构:headers 非空 + rows 列宽匹配 - [x] Image alt/src:alt 存在 + src 非空 ### 新增 - `fixtures/markdown/complex_markdown.md` — 含全部 8 种 block 的复杂文档 - `markdown.rs`: `test_fixture_complex_markdown` — 全量验收测试 ### 验证 ``` cargo test test_fixture_complex_markdown — passed cargo test markdown — 11 passed (含全部 8 种 block 类型) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/zhixi-document-runtime#85
No description provided.