Commit 4a70d7b
committed
fix: ensure headers always start on new lines
- Add ensureBlockStart() helper to check accumulated output
- Call before rendering block elements (HEADING, PARAGRAPH, CODE_BLOCK, LIST, BLOCKQUOTE, RULE)
- Add test case TestPerformMarkdownTaskHeadersOnNewlines
- Add HTML fixture reproducing inline-to-block transition edge case
- Verify no headers appear immediately after non-newline characters
Fixes #41 parent 8e2dfdb commit 4a70d7b
3 files changed
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
306 | 332 | | |
307 | 333 | | |
308 | 334 | | |
| |||
317 | 343 | | |
318 | 344 | | |
319 | 345 | | |
| 346 | + | |
320 | 347 | | |
321 | 348 | | |
322 | 349 | | |
323 | 350 | | |
324 | 351 | | |
325 | 352 | | |
| 353 | + | |
326 | 354 | | |
327 | 355 | | |
328 | 356 | | |
| |||
379 | 407 | | |
380 | 408 | | |
381 | 409 | | |
| 410 | + | |
382 | 411 | | |
383 | 412 | | |
384 | 413 | | |
385 | 414 | | |
386 | 415 | | |
| 416 | + | |
387 | 417 | | |
388 | 418 | | |
389 | 419 | | |
| |||
392 | 422 | | |
393 | 423 | | |
394 | 424 | | |
| 425 | + | |
395 | 426 | | |
396 | 427 | | |
397 | 428 | | |
| |||
411 | 442 | | |
412 | 443 | | |
413 | 444 | | |
| 445 | + | |
414 | 446 | | |
415 | 447 | | |
416 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
| |||
0 commit comments