incorrect start_column & end_column
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
使用输入 - \na 复现该问题,并检查生成的 Document、List、Paragraph 和 Text AST 的 bounds。跟踪 start_column 和 end_column 的计算位置,然后添加或更新回归测试,展示预期的 bounds,并确认 parser 不再生成不一致的层级范围。
由索引模型根据 Issue 内容生成。
描述
The text: - \na
Creates the following hierarchy:
DocumentListParagraphText
This AST has the following {start_line, end_line, start_column, end_column}
Document: {1, 2, 1, 1}List: {1, 2, 1, 1}Paragraph: {1, 2, 3, 1}Text: {2, 2, 3, 3}
{2, 2, 3, 3} (the Text bounds) exceed the bounds for the document, and violates some assumptions which cause my application to panic.
I couldn't find any documentation which makes it clear whether this is a bug or not, but my intuition says that this is a bug.
- 主要语言
- C
- 星标
- 2k
- 派生
- 703
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 8
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
commonmark/cmark 的其他 Issue
-
Incorrect `parser->offset` advancement for closing fenced code blocks in `parse_code_block_prefix`可能已有人在做 @cpruijsen 于 45 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
commonmark/cmark#590 · 3 条评论 ·
维护者通常 2 天内回复
-
API documentation is missing an explanation of CMARK_NODE_CUSTOM_BLOCK and CMARK_NODE_CUSTOM_INLINE未关闭
难度 2/5 1-3 小时 新手友好度 68/100
commonmark/cmark#441 · 2 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
commonmark/cmark#626 · 4 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
commonmark/cmark#624 ·
维护者通常 2 天内回复
-
Single-space blank line evicts a list-item continuation可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 65/100
commonmark/cmark#618 ·
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
libsdl-org/SDL#16607 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
PowerShell/Win32-OpenSSH#2482 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
zephyrproject-rtos/zephyr#123881 ·
维护者通常 2 天内回复