镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Conversion failed link, there are () when #736

Closed

Description

@xuexb

Code:

var marked = require('marked');

var str = '[window.close()](javascript:window.close())';

console.log(str);
console.log(marked(str));

Output:

[window.close()](javascript:window.close())
<p><a href="javascript:window.close(">window.close()</a>)</p>

Right should be: (My opinion)

<p><a href="javascript:window.close()">window.close()</a></p>

by npm marked@0.3.5, nodejs@4.4.0


Thanks ~

Activity

  1. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member
  2. added
    L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issue
    on Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1 - brokenValid usage causes incorrect output OR a crash AND there is no known workaround for the issuecategory: links

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions