0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/markdown/remark/src/mdast-util-mdxish.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
387 B
TypeScript
Raw Normal View History

2022-05-24 17:03:29 -05:00
import { mdxExpressionFromMarkdown, mdxExpressionToMarkdown } from 'mdast-util-mdx-expression';
import { mdxJsxFromMarkdown, mdxJsxToMarkdown } from 'mdast-util-mdx-jsx';
export function mdxFromMarkdown(): any {
2022-05-24 17:03:29 -05:00
return [mdxExpressionFromMarkdown, mdxJsxFromMarkdown];
}
export function mdxToMarkdown(): any {
2022-05-24 17:03:29 -05:00
return {
extensions: [mdxExpressionToMarkdown, mdxJsxToMarkdown],
};
}