Commit fee8f39
fix(parser): stop dlist from consuming block attributes as principal text
Adds a negative lookahead for `attributes_line()` in the
`principal_content` continuation loop so that block attributes
(e.g. `[cols="..."]`) immediately after a definition list term
are no longer swallowed as continuation text.
Closes #332
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c1e9f7a commit fee8f39
File tree
6 files changed
+1456
-0
lines changed- acdc-parser
- fixtures/tests
- src/grammar
- converters/html/tests/fixtures
- expected/html5s
- source/html5s
6 files changed
+1456
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
282 | 287 | | |
283 | 288 | | |
284 | 289 | | |
| 290 | + | |
285 | 291 | | |
286 | 292 | | |
287 | 293 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments