Formatting of newlines in gitbook
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- markdown
调研方向
首先检查 pattern markdown 文件以及 issue 中描述的 GitBook 渲染页面,以确认单个换行符的处理方式。确定修正应属于 markdown 内容还是 GitBook 配置,然后验证渲染后的 pattern 不再显示不需要的换行,同时保留预期的段落。
由索引模型根据 Issue 内容生成。
描述
gitbook is the tool that we use to host https://patterns.innersourcecommons.org.
gitbook has (recently) changed the way that newline characters (\n) in our markdown files are rendered.
Previously a single newline character did not generate a line break.
That meant that we could format our pattern files like below to allow for easier line-based commenting when reviewing patterns.
There's a central project that everyone depends on.
What a great candidate for InnerSource!
Unfortunately, the project has grown organically, with various contributions and additions slapped on haphazardly.
Recently gitbook made change in this rendering logic. Now such text in markdown is rendered exactly as shown i.e. each newline in the markdown also leads to a line break in the rendered HTML. This does not look great. See screenshot below.
- 主要语言
- HTML
- 星标
- 853
- 派生
- 206
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InnerSourceCommons/InnerSourcePatterns 的其他 Issue
-
community metrics
InnerSourceCommons/InnerSourcePatterns#935 · 已指派 1 人 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#934 · 已指派 1 人 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#922 · 已指派 1 人 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#921 · 已指派 1 人 ·
-
community metrics
InnerSourceCommons/InnerSourcePatterns#915 · 已指派 1 人 ·
查看 InnerSourceCommons/InnerSourcePatterns 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·
-
NeedsTriage
难度 1/5 1 小时以内 新手友好度 90/100
-
error 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
textual definition
难度 1/5 1 小时以内 新手友好度 90/100
geneontology/go-ontology#32653 ·