mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
12 lines
387 B
TypeScript
12 lines
387 B
TypeScript
import { mdxExpressionFromMarkdown, mdxExpressionToMarkdown } from 'mdast-util-mdx-expression';
|
|
import { mdxJsxFromMarkdown, mdxJsxToMarkdown } from 'mdast-util-mdx-jsx';
|
|
|
|
export function mdxFromMarkdown(): any {
|
|
return [mdxExpressionFromMarkdown, mdxJsxFromMarkdown];
|
|
}
|
|
|
|
export function mdxToMarkdown(): any {
|
|
return {
|
|
extensions: [mdxExpressionToMarkdown, mdxJsxToMarkdown],
|
|
};
|
|
}
|