Conversation
Bluuok
marked this pull request as ready for review
September 16, 2026 07:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明
What
folio-block解析器识别反引号和波浪线围栏,并要求关闭围栏使用相同字符且长度不少于开启围栏。folio-block被当成真实结构化回答块。\r,保留返回文本和 block body 的原始内容,并补充边界和流式场景测试。Why
原实现会在扫描文本时把普通代码围栏中的
folio-block示例误识别为真实 block;同时只支持固定长度的反引号和 LF 形式的关闭行,导致嵌套示例、不同围栏长度和 CRLF 内容的呈现边界不稳定。关联 Issue
Related to #31;follow-up to merged PR #81 的 typed
folio-block渲染路径。测试报告(正式审核前必填)
环境
实际执行命令与结果
已知失败 / Baseline(如有)
无已知测试失败;UI workspace 全量测试在本分支通过。
仓库 CI 固定使用 Bun 1.4.2;本地实际使用 Bun 1.4.0,Bun 1.4.2 的 CI 结果待 GitHub Actions 复核。
已提供实际测试命令与 pass/fail 结果
已说明测试环境
如果存在已知 baseline / 环境失败,已提供 main 对照或说明
核心改动已有对应 focused test / smoke / integration 验证
UI 截图(仅可见 UI 变化时必填)
Before(适用时)
错误行为:普通代码围栏内的 folio-block 示例被误识别并渲染为 123.45 美元卡片。
After(适用时)
修复行为:嵌套示例保留为代码文本,真实顶层 folio-block 仍渲染为 182.31 美元结构化 block。
Scope / 后续