File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,17 @@ export const phrasing =
29
29
'image' ,
30
30
'imageReference' ,
31
31
'inlineCode' ,
32
+ // Enabled by `mdast-util-math`:
33
+ 'inlineMath' ,
32
34
'link' ,
33
35
'linkReference' ,
36
+ // Enabled by `mdast-util-mdx`:
37
+ 'mdxJsxTextElement' ,
38
+ // Enabled by `mdast-util-mdx`:
39
+ 'mdxTextExpression' ,
34
40
'strong' ,
35
- 'text'
41
+ 'text' ,
42
+ // Enabled by `mdast-util-directive`:
43
+ 'textDirective'
36
44
] )
37
45
)
Original file line number Diff line number Diff line change @@ -51,4 +51,8 @@ test('phrasing', async function (t) {
51
51
assert . equal ( phrasing ( { type : 'list' } ) , false )
52
52
}
53
53
)
54
+
55
+ await t . test ( 'should support common extensions' , async function ( ) {
56
+ assert . equal ( phrasing ( { type : 'textDirective' } ) , true )
57
+ } )
54
58
} )
You can’t perform that action at this time.
0 commit comments