(html) Words directly following closing tag are highlighted as tag names #3044
Labels
bug
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
Any possible tag name following a closing HTML tag (such as
</i>
) without whitespace in between is highlighted the same way as the tag name itself: withhljs-name
.This happens in a code block with
class="language-html"
andhljs.highlightAll();
in version 10.6.0.Minimal test case:
Code:
Screenshot:
As I said, any possible tag name is highlighted like this:
Text
,Foo:Text
,custom-element
, but not1number
.Expected behavior
GitHub’s highlighting does it correctly.
Text
should be highlighted as normal text, just like described in the HTML comments in the code.I’ve encountered this on Stack Overflow.
The text was updated successfully, but these errors were encountered: