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 {
8585 '<p><strong>bold</strong></p>' ,
8686 const StrongNode (nodes: [TextNode ('bold' )]));
8787
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+
8895 static final emphasis = ContentExample .inline (
8996 'emphasis/italic' ,
9097 '*italic*' ,
@@ -1535,10 +1542,7 @@ void main() async {
15351542
15361543 testParseExample (ContentExample .strong);
15371544
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);
15421546
15431547 testParseExample (ContentExample .emphasis);
15441548
Original file line number Diff line number Diff line change @@ -709,6 +709,8 @@ void main() {
709709 styleFinder: findWordBold);
710710 });
711711
712+ testContentSmoke (ContentExample .deleted);
713+
712714 testContentSmoke (ContentExample .emphasis);
713715
714716 group ('inline code' , () {
You can’t perform that action at this time.
0 commit comments