Skip to content

Commit 86e2a67

Browse files
committed
Fix release workflow and remove md-compiler import warning
1 parent c8e1b69 commit 86e2a67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

libraries/md-compiler/src/compiler/jsx-expression-eval.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
JSXSpreadChild,
88
JSXText
99
} from 'estree-jsx'
10-
import type {RootContent} from 'mdast'
10+
import type {Root, RootContent} from 'mdast'
1111
import type {MdxFlowExpression, MdxJsxFlowElement, MdxTextExpression} from 'mdast-util-mdx'
1212
import type {EvaluateExpressionOptions} from './expression-eval'
1313
import type {ProcessingContext} from './types'
@@ -246,8 +246,10 @@ async function processJsxElement(
246246
const mdxElement = convertEstreeJsxToMdx(jsxElement, ctx)
247247

248248
if (mdxElement.name != null && isMdxComponent(mdxElement.name, ctx)) {
249-
const {processAst} = await import('./transformer')
250-
return processComponent(mdxElement, ctx, processAst)
249+
return processComponent(mdxElement, ctx, async (ast: Root, c: ProcessingContext) => ({
250+
type: 'root',
251+
children: await processAstFn(ast.children, c)
252+
}))
251253
}
252254

253255
const converted = convertJsxToMarkdown(mdxElement, ctx)

0 commit comments

Comments
 (0)