Skip to content

After search, header tags with an anchor link have invalid markup #18

@mattheworiordan

Description

@mattheworiordan

A search for "auth" (#search_word=auth) turns an H2 tag as follows:

<h2>
<a id="user-content-competitor-auth-features" class="anchor" href="#competitor-auth-features" aria-hidden="true"><span class="octicon octicon-link"></span></a>Competitor auth features
</h2>

into this

<h2>
<a id="user-content-competitor-<em style=" background-color:#faffa6;padding:0.1em;"="">auth-feautres" class="anchor" href="#competitor-<em style="background-color:#FAFFA6;padding:0.1em;">auth</em>-feautres" aria-hidden="true"&gt;<span class="octicon octicon-link"></span></a>Competitor <em style="background-color:#FAFFA6;padding:0.1em;">auth</em> features
</h2>

which appears as:

h2. auth-features" class="anchor" href="#competitor-auth-features" aria-hidden="true">Competitor auth features

I assume this is related to #15, so feel free to close this issue in favour of #15 if this is the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions