Commit e25fc10
authored
fix: Enhance
Markdown card component failed to render multiline strings with
indentation:
```python
# Didn't render - leading whitespace broke Markdown parsing
Markdown(f"""
# Header
- Item 1
""")
```
Added automatic text dedenting using `textwrap.dedent()` in the Markdown
component.
```python
# Now works automatically!
Markdown(f"""
# Header
- Item 1
""")
```Markdown component to support indented multi-line strings (#2634)1 parent 0092d10 commit e25fc10
1 file changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
656 | 657 | | |
657 | 658 | | |
658 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
659 | 671 | | |
660 | 672 | | |
661 | 673 | | |
662 | | - | |
| 674 | + | |
| 675 | + | |
663 | 676 | | |
664 | 677 | | |
665 | 678 | | |
666 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
667 | 687 | | |
668 | | - | |
| 688 | + | |
669 | 689 | | |
670 | 690 | | |
671 | | - | |
| 691 | + | |
672 | 692 | | |
673 | 693 | | |
674 | 694 | | |
| |||
0 commit comments