Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

read: an empty paragraph before a list in a table cell is lost

未关闭
#214 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
go, markdown
领域
cli, content

调研方向

Start with tableShape and renderCellLines, then reproduce the XML table-cell shape described in the issue and inspect the table property test that exposed it. The fix is done when the empty paragraph before a list survives the Markdown round trip and the generated Markdown is a fixed point on the next read.

由索引模型根据 Issue 内容生成。

描述

An empty paragraph just before a list in a table cell loses its line on the round trip. The table property test found it on main while I was working on #204, once a change to the generator moved its seeds onto this shape:

<td><p><strong>x up</strong></p><p /><ol><li><p>auth</p></li></ol></td>

reads as | **x up**<br><ol><li><p>auth</p></li></ol> |. That publishes as <strong>x up</strong><br><ol>…, and the next read drops the <br>: | **x up**<ol>…</ol> |. So the Markdown is not a fixed point, and the empty line is gone.

renderCellLines puts a <br> before the empty line and none before the list (a list ends its line by being a block), so the <br> it writes ends up directly before the <ol>, where it has no effect. #55 already keeps a table raw for an empty paragraph at either end of a cell. The likely fix is the same rule for an empty paragraph next to a list, in tableShape.

主要语言
Go
星标
4
派生
1
平均合并
2 小时 31 分钟
30 天内合并 PR
59

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla/markfluence 的其他 Issue

查看 mozilla/markfluence 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。