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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
InnerSourceCommons/InnerSourcePatterns 的其他 Issue
-
Monthly Metrics: Contributors 2026-09-01..2026-09-30可能已有人在做 @spier 於 1 天前認領。 未關閉community metrics
InnerSourceCommons/InnerSourcePatterns#941 · 已指派 1 人 ·
-
Monthly Metrics: New Issues + New Pull Requests 2026-09-01..2026-09-30可能已有人在做 @spier 於 1 天前認領。 未關閉community metrics
InnerSourceCommons/InnerSourcePatterns#940 · 已指派 1 人 ·
-
Monthly Metrics: Contributors 2026-08-01..2026-08-31可能重新可做 @spier 於 31 天前認領,目前沒有進行中的 PR。 未關閉community metrics
InnerSourceCommons/InnerSourcePatterns#935 · 已指派 1 人 ·
-
Monthly Metrics: New Issues + New Pull Requests 2026-08-01..2026-08-31可能重新可做 @spier 於 31 天前認領,目前沒有進行中的 PR。 未關閉community metrics
InnerSourceCommons/InnerSourcePatterns#934 · 已指派 1 人 ·
-
Monthly Metrics: Contributors 2026-07-01..2026-07-31可能重新可做 @spier 於 62 天前認領,目前沒有進行中的 PR。 未關閉community metrics
InnerSourceCommons/InnerSourcePatterns#922 · 已指派 1 人 ·
查看 InnerSourceCommons/InnerSourcePatterns 的全部 Issue
相似的 Issue
-
Release notes未關閉
難度 2/5 1-3 小時 新手友好度 68/100
mieweb/timehuddle#634 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
維護者通常 1 天內回覆
-
Add: Entune未關閉
難度 2/5 1-3 小時 新手友好度 76/100
AbdelStark/awesome-typesafe-jev#187 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
blinklabs-io/dingo#4937 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
TheOdinProject/curriculum#31444 ·
維護者通常 1 天內回覆