Showing
1 changed file
with
4 additions
and
3 deletions
| @@ -330,8 +330,7 @@ class IndentMd extends BlockMd { | @@ -330,8 +330,7 @@ class IndentMd extends BlockMd { | ||
| 330 | padding: spaces * 5, | 330 | padding: spaces * 5, |
| 331 | bulletSize: 0, | 331 | bulletSize: 0, |
| 332 | textDirection: config.textDirection, | 332 | textDirection: config.textDirection, |
| 333 | - child: Text.rich( | ||
| 334 | - TextSpan( | 333 | + child: Text.rich(TextSpan( |
| 335 | children: MarkdownComponent.generate( | 334 | children: MarkdownComponent.generate( |
| 336 | context, | 335 | context, |
| 337 | "${match?[2]}", | 336 | "${match?[2]}", |
| @@ -458,6 +457,7 @@ class BoldMd extends InlineMd { | @@ -458,6 +457,7 @@ class BoldMd extends InlineMd { | ||
| 458 | ); | 457 | ); |
| 459 | } | 458 | } |
| 460 | } | 459 | } |
| 460 | + | ||
| 461 | class StrikeMd extends InlineMd { | 461 | class StrikeMd extends InlineMd { |
| 462 | @override | 462 | @override |
| 463 | RegExp get exp => RegExp(r"(?<!\*)\~\~(?<!\s)(.+?)(?<!\s)\~\~(?!\*)"); | 463 | RegExp get exp => RegExp(r"(?<!\*)\~\~(?<!\s)(.+?)(?<!\s)\~\~(?!\*)"); |
| @@ -474,7 +474,8 @@ class StrikeMd extends InlineMd { | @@ -474,7 +474,8 @@ class StrikeMd extends InlineMd { | ||
| 474 | decoration: TextDecoration.lineThrough, | 474 | decoration: TextDecoration.lineThrough, |
| 475 | decorationColor: config.style?.color, | 475 | decorationColor: config.style?.color, |
| 476 | ) ?? | 476 | ) ?? |
| 477 | - const TextStyle(decoration: TextDecoration.lineThrough, | 477 | + const TextStyle( |
| 478 | + decoration: TextDecoration.lineThrough, | ||
| 478 | )); | 479 | )); |
| 479 | return TextSpan( | 480 | return TextSpan( |
| 480 | children: MarkdownComponent.generate( | 481 | children: MarkdownComponent.generate( |
-
Please register or login to post a comment