Commit b70b9c0
committed
fix: handle left-angle-bracket that's not a tag (#733)
This handles the case where there's a `<` followed by one or more
character such that it looks like the beginning of a start tag and then
a space and then a thing that actually is a start tag. Something like:
```
<tag <b>text</b>
```
This fixes it by identifying the situation and then shoving everything
after the space back into the character stream to get parsed again.1 parent 4dcf8d6 commit b70b9c0
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
349 | 380 | | |
350 | 381 | | |
351 | 382 | | |
| |||
0 commit comments