Open uniqueeest opened 2 months ago
How are you generating the expect file? All literal quotes need to be HTML escaped.
@joshgoebel I wrote it.
expect-test
<span class="hljs-attr">"*":</span>
test
"*":
But it comes out like the picture I posted.
Every "
should be "
as the failing test is telling you. The output from Highlight.js must be HTML encoded.
@joshgoebel Test file modification completed. It also passed without any problems.
Changes
This modification extends the definition of the key to include spaces, colon, slash, hyphen, and parentheses. It also changes the key to include more character types while maintaining the pattern that ends in colon.
Checklist
CHANGES.md