-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
20 lines (18 loc) · 637 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
* @typedef {import('micromark-util-types').Extension} Extension
*/
import {mdxExpression} from 'micromark-extension-mdx-expression'
import {mdxJsx} from 'micromark-extension-mdx-jsx'
import {mdxMd} from 'micromark-extension-mdx-md'
import {combineExtensions} from 'micromark-util-combine-extensions'
/**
* Create an extension for `micromark` to enable MDX syntax, unaware of
* JavaScript.
*
* @returns {Extension}
* Extension for `micromark` that can be passed in `extensions` to enable MDX
* syntax, unaware of JavaScript.
*/
export function mdx() {
return combineExtensions([mdxExpression(), mdxJsx(), mdxMd()])
}