Skip to content

Hash links with "&" are not converted the same way as github links #857

Closed

Description

@tannerlinsley

On github markdown, a header like this one:

This & That Section

will write out an id like this: this--that-section

On markdown-loader, it writes out this-that-section

This breaks links that adhere to github markdowns syntax:

[This & That Section](#this--that-section)

Another example:

const marked = require("marked");

marked("# This & That Section");
// => '<h1 id="this-that-section">This &amp; That Section</h1>\n'`

Filed originally at peerigon/markdown-loader#17

Activity

  1. joshbruce commented on Dec 25, 2017

    @joshbruce
    Member
  2. joshbruce commented on Jan 5, 2018

    @joshbruce
    Member
  3. added
    L2 - annoying
    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

    L2 - annoyingcategory: headings

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions