github / github/paste-markdown

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

Open
#96 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
234
Forks
47
Avg merge
1d 12h
Merged PRs (30d)
5

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.