Marked: Link resolution failed

Created on 12 May 2018  Â·  5Comments  Â·  Source: markedjs/marked

see this demo

or this demo

If the link contains () it will fail to parse. Thanks for solving this problem.

question

Most helpful comment

Is this relative to master? I don't think that pr was released yet?
It should support up to one level of nested, balanced parenthesis, yes.

All 5 comments

Thanks for the bug report!

I confirmed that this is a bug in marked, and works fine in CommonMark.

@Feder1co5oave wasn't #1135 supposed to fix this?

Is this relative to master? I don't think that pr was released yet?
It should support up to one level of nested, balanced parenthesis, yes.

That demo uses the latest released version, the bug is fixed in master:

$ bin/marked
[wd](https://aaa.com/(wd))

[demo](https://wiki.archlinux.org/index.php/Samba_(简体中文)#.E6.B7.BB.E5.8A.A0.E7.94.A8.E6.88.B7)

<p><a href="https://aaa.com/(wd)">wd</a></p>
<p><a href="https://wiki.archlinux.org/index.php/Samba_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E6.B7.BB.E5.8A.A0.E7.94.A8.E6.88.B7">demo</a></p>

Please make sure the bug is still there before confirming it.

I confirmed this is fixed in master and will be released in 0.4.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samit4me picture samit4me  Â·  3Comments

camwiegert picture camwiegert  Â·  4Comments

amejiarosario picture amejiarosario  Â·  3Comments

bennycode picture bennycode  Â·  4Comments

toc
zoe-cjf picture zoe-cjf  Â·  3Comments