github / github/paste-markdown

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

Đang mở
#96 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
234
Fork
47
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.