Release/v0.5.3 - #5
Merged
Merged
Conversation
--filter-title / --filter-title-block-id 命中深层标题时,自动注入其 所有更高层级父级标题(仅 heading block 本身),保留文档层级上下文。 实现:在 createHeadingMatchFilter 内部用栈式回溯维护祖先链 (与 buildTitleTree 算法一致),命中时按文档顺序把栈中 heading push 进 collected。利用 Parser 不递归 heading.children 的既有语义, 祖先的非命中兄弟内容因不在 blockMap 中会被自动跳过,无需新增 heading-only 标记或改动 Parser/Serializer。 边界:顶级命中不注入;跳级祖先不伪造中间层;旁支兄弟通过栈回溯 天然排除;跨分页栈持久化;availableHeadings 契约保持不变。
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.
No description provided.