File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,13 @@ class ContentExample {
85
85
'<p><strong>bold</strong></p>' ,
86
86
const StrongNode (nodes: [TextNode ('bold' )]));
87
87
88
+ static final deleted = ContentExample .inline (
89
+ 'deleted/strike-through' ,
90
+ '~~strike through~~' ,
91
+ expectedText: 'strike through' ,
92
+ '<p><del>strike through</del></p>' ,
93
+ const DeletedNode (nodes: [TextNode ('strike through' )]));
94
+
88
95
static final emphasis = ContentExample .inline (
89
96
'emphasis/italic' ,
90
97
'*italic*' ,
@@ -1535,10 +1542,7 @@ void main() async {
1535
1542
1536
1543
testParseExample (ContentExample .strong);
1537
1544
1538
- testParseInline ('parse deleted/strike-through' ,
1539
- // "~~strike through~~"
1540
- '<p><del>strike through</del></p>' ,
1541
- const DeletedNode (nodes: [TextNode ('strike through' )]));
1545
+ testParseExample (ContentExample .deleted);
1542
1546
1543
1547
testParseExample (ContentExample .emphasis);
1544
1548
Original file line number Diff line number Diff line change @@ -709,6 +709,8 @@ void main() {
709
709
styleFinder: findWordBold);
710
710
});
711
711
712
+ testContentSmoke (ContentExample .deleted);
713
+
712
714
testContentSmoke (ContentExample .emphasis);
713
715
714
716
group ('inline code' , () {
You can’t perform that action at this time.
0 commit comments