showdown icon indicating copy to clipboard operation
showdown copied to clipboard

makeMarkdown leaves angle brackets inside links

Open staab opened this issue 6 years ago • 3 comments

Description

When converting an html string with links to markdown, some angle brackets get left in the markdown.

Input

converter.makeMarkdown('<a href="x">hi</a>')

Expected Output

[hi](x)

Actual Output

[hi](<x>)

staab avatar Aug 23 '19 19:08 staab

Kindly inform, if this is getting picked up anytime soon?

punituee avatar Aug 19 '20 06:08 punituee

Unfortunately this looks like expected behavior per #681. Hopefully they add an option to disable this, or at least not exhibit the behavior in flavors like GFM.

EricRabil avatar Dec 03 '20 02:12 EricRabil

Thanks, I have already started to regex filter these unwanted brackets. No more dependent on release.

punituee avatar Dec 03 '20 19:12 punituee