Commit 960bcdc
committed
fix: refine mermaid rendering — restore image placeholders, use picker font size, improve UX
Restore IMAGE_PLACEHOLDER_LINES (16) and PARAGRAPH_IMAGE_PLACEHOLDER_LINES (13)
to their original values since mermaid has its own MERMAID_PLACEHOLDER_LINES (22).
Use picker font dimensions instead of hardcoded 8px multiplier for mermaid pixel
width calculation. Truncate long mermaid error messages to fit display width. Add
hint when mermaid feature is disabled. Note mermaid-rs-renderer pre-1.0 maturity.1 parent 2b07a4e commit 960bcdc
4 files changed
Lines changed: 34 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
809 | 816 | | |
810 | 817 | | |
811 | | - | |
| 818 | + | |
812 | 819 | | |
813 | 820 | | |
814 | 821 | | |
| |||
818 | 825 | | |
819 | 826 | | |
820 | 827 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | 828 | | |
825 | 829 | | |
826 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
736 | 743 | | |
737 | 744 | | |
738 | 745 | | |
739 | | - | |
| 746 | + | |
740 | 747 | | |
741 | 748 | | |
742 | 749 | | |
| |||
1543 | 1550 | | |
1544 | 1551 | | |
1545 | 1552 | | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
| 1553 | + | |
1550 | 1554 | | |
1551 | 1555 | | |
1552 | 1556 | | |
| |||
1571 | 1575 | | |
1572 | 1576 | | |
1573 | 1577 | | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
1574 | 1586 | | |
1575 | 1587 | | |
1576 | 1588 | | |
| |||
0 commit comments