We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17acf6f commit 2e89b93Copy full SHA for 2e89b93
lib/index.js
@@ -29,9 +29,17 @@ export const phrasing =
29
'image',
30
'imageReference',
31
'inlineCode',
32
+ // Enabled by `mdast-util-math`:
33
+ 'inlineMath',
34
'link',
35
'linkReference',
36
+ // Enabled by `mdast-util-mdx`:
37
+ 'mdxJsxTextElement',
38
39
+ 'mdxTextExpression',
40
'strong',
- 'text'
41
+ 'text',
42
+ // Enabled by `mdast-util-directive`:
43
+ 'textDirective'
44
])
45
)
test.js
@@ -51,4 +51,8 @@ test('phrasing', async function (t) {
51
assert.equal(phrasing({type: 'list'}), false)
52
}
53
54
+
55
+ await t.test('should support common extensions', async function () {
56
+ assert.equal(phrasing({type: 'textDirective'}), true)
57
+ })
58
})
0 commit comments