Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

github anchor #5

@aderidder

Description

@aderidder

Hi,

We have several pages in a github wiki which use anchors to navigate within a page. In github markdown it looks like this:

[Some text](#header-1)
# Header 1

This works fine. If I look at the HTML this leads to on github:
<a href="#header-1">Some text</a>
<h1><a id="user-content-header-1" class="anchor" href="#header-1" aria-hidden="true"><span class="octicon octicon-link"></span></a></h1>

If I run the same markdown content through showdown, the html it generates is
<a href="#header-1">Some text</a>
<h1 id="header1">Header 1</h1>

So it seems to have removed the space from the header text to generate its id. As they are no longer matching, the navigation is no longer working. Is there some setting I'm missing?

Thanks!

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