github-wiki-search icon indicating copy to clipboard operation
github-wiki-search copied to clipboard

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

Open mattheworiordan opened this issue 9 years ago • 1 comments

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 https://github.com/linyows/github-wiki-search/issues/15, so feel free to close this issue in favour of https://github.com/linyows/github-wiki-search/issues/15 if this is the case.

mattheworiordan avatar Jun 24 '15 14:06 mattheworiordan

+1 on this, here's a screenshot:

wikisearch_bug

kevinsqi avatar Jul 28 '15 21:07 kevinsqi