github / github/paste-markdown

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

オープン
#96 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
234
フォーク
47
平均マージ
1日 12時間
マージ済み PR(30日)
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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。