Closed fekoch closed 1 year ago
For me, it highlights all the <p>
's, but non of the <b>
's nor <span>
's.
I guess the issue is somewhere here: https://github.com/yandeu/five-server/blob/512302a00c080bbaf3caa25c79c97f8e86166257/src/workers/parseBody.ts#L35
injectHighlight()
does not look like a very good implementation. Re-writing the parser would probably help.
I'm about to improve it here: https://github.com/yandeu/five-server/tree/better-body-parsing
Describe the bug If you use two or more tags inside a
<p></p>
(like<b>
,<br>
and<span>
) the highlight feature stops working inside and after the second tag.working:
<b>
and<br>
2x
<span>
my
.fivesereverrc.json
:full
index.html
:Installed Plugins: only yandeu.five-server (v0.1.4)
Editor: