Repository navigation
Commit 86e536f
fix(mobile): show every image when Markdown puts one per line
Images on consecutive lines form one Markdown paragraph. The native
renderer sizes an image as a block only when it is its paragraph's only
child, so on Android the first image was cropped and the rest were not
drawn.
markdownForNativeParsing now gives each image its own paragraph when a
top-level paragraph holds only images, one per line. Images that share a
line stay inline, and parseMarkdownDocument keeps the authored paragraphs.
Fixes #28063
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent e5d0710 commit 86e536f
2 files changed
Lines changed: 47 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
434 | 461 | | |
435 | | - | |
| 462 | + | |
436 | 463 | | |
437 | 464 | | |
438 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
439 | 470 | | |
440 | | - | |
| 471 | + | |
441 | 472 | | |
442 | 473 | | |
443 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
247 | 261 | | |
248 | 262 | | |
249 | 263 | | |
| |||
0 commit comments