github / github/paste-markdown

Pasting same title in html/markdown causes output to be nested

未關閉
#96 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
234
分支
47
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

This is an issue that was forwarded to me, but I'm able to reproduce.

If text/html and text/plain contain the same title, the output we return is nested.

Expected output: `[[Same](https://google.com/)](https://google.com)"`
Actual output: `[Same](https://google.com)`

Reproduction: https://codepen.io/tarngerine/pen/ZEZBEpy

Try pressing the `Copy` button on either of the examples and try pasting into any GitHub comment box.

貢獻指南

開啟貢獻指南

研究方向

從連結的 CodePen 重現開始,比較將每個範例複製到 GitHub 留言框時發生的情況。追蹤 repository 中的貼上處理,以找出為什麼相同的 text/html 和 text/plain 標題會產生未巢狀的輸出;當重現回傳預期的巢狀 Markdown 連結時,即視為完成。

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

評估

技術堆疊
javascript
領域
frontend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
48/100

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

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