github / github/markup

Fix HTML rendering when there is a line break between backticks

未關閉
#1,689 26 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Ruby
星號
6k
分支
3.4k
PR 合併指標
30 天內沒有已合併 PR

描述

A line break between backticks gets turned into a line break inside a HTML `` block. This makes browsers render with a line break when that was not intended.

Real world example here:
https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-push.adoc

These lines:

If you are migrating a repository with these commands, make sure to run `git
lfs push` for any additional remote refs that contain Git LFS objects not

Turn into this HTML:

If you are migrating a repository with these commands, make sure to run git
lfs push
for any additional remote refs that contain Git LFS objects not

貢獻指南

開啟貢獻指南

研究方向

從 issue 中連結的 Git LFS 範例開始,重現反引號之間的換行在產生的 HTML code element 中是如何呈現的。追蹤處理反引號分隔文字的 markup 呈現路徑,然後驗證呈現後的範例在程式碼區塊內不再包含視覺上的換行。如果 repository 現有的呈現測試提供了適當的進入點,請新增回歸測試涵蓋範圍。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
ruby
領域
backend, web-dev
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。