Skip to content

Commit 182ac54

Browse files
committed
katex test [nfc]: Make a KatexExample.inline similar to .block
1 parent 1811266 commit 182ac54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/model/katex_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ import 'content_test.dart';
1414
///
1515
/// For guidance on writing examples, see comments on [ContentExample].
1616
class KatexExample extends ContentExample {
17+
KatexExample.inline(String description, String texSource, String html,
18+
List<KatexNode>? expectedNodes)
19+
: super.inline(description, '\$\$ $texSource \$\$', html,
20+
MathInlineNode(texSource: texSource, nodes: expectedNodes));
21+
1722
KatexExample.block(String description, String texSource, String html,
1823
List<KatexNode>? expectedNodes)
1924
: super(description, '```math\n$texSource\n```', html,

0 commit comments

Comments
 (0)