Showing
1 changed file
with
8 additions
and
7 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)\~\~(?!\*)"); |
| @@ -471,11 +471,12 @@ class StrikeMd extends InlineMd { | @@ -471,11 +471,12 @@ class StrikeMd extends InlineMd { | ||
| 471 | var match = exp.firstMatch(text.trim()); | 471 | var match = exp.firstMatch(text.trim()); |
| 472 | var conf = config.copyWith( | 472 | var conf = config.copyWith( |
| 473 | style: config.style?.copyWith( | 473 | style: config.style?.copyWith( |
| 474 | - decoration: TextDecoration.lineThrough, | ||
| 475 | - decorationColor: config.style?.color, | ||
| 476 | - ) ?? | ||
| 477 | - const TextStyle(decoration: TextDecoration.lineThrough, | ||
| 478 | - )); | 474 | + decoration: TextDecoration.lineThrough, |
| 475 | + decorationColor: config.style?.color, | ||
| 476 | + ) ?? | ||
| 477 | + const TextStyle( | ||
| 478 | + decoration: TextDecoration.lineThrough, | ||
| 479 | + )); | ||
| 479 | return TextSpan( | 480 | return TextSpan( |
| 480 | children: MarkdownComponent.generate( | 481 | children: MarkdownComponent.generate( |
| 481 | context, | 482 | context, |
-
Please register or login to post a comment