Skip to content

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

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)

Activity

  1. meaku commented on Feb 16, 2017

    @meaku
    Member

    Thanks for reporting @tannerlinsley. markdown-loader relies on marked for generating HTML. According to the marked docs, gfm is enabled by default.

    Example

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

    Can you file this issue on the marked repository?

  2. tannerlinsley commented on Feb 16, 2017

    @tannerlinsley
    Author
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