Skip to content

Does not Handle Markdown Escapes In Link Href #829

Closed

Description

@mjbvz

From microsoft/vscode#14968

Marked does not seem to properly handle markdown escapes inside of links. Only the link text itself is properly handled, the title and href are not:

var marked = require('marked');
marked('[text\\.](http://example\\.com "\\.title")')

produces:

<p><a href="http://example\.com" title="\.title">text.</a></p>

Activity

  1. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member
  2. Feder1co5oave commented on Jan 10, 2018

    @Feder1co5oave
    Contributor

    Related to #229.
    This is not limited to links, but more general.

    Must review escaping of special and not-special characters via backslashes in various parts of the document. Should take a look at the escape inline rule, but some escaping problems exist in parts which are not inline-parsed, such as link titles.

    http://spec.commonmark.org/0.28/#backslash-escapes

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions