diff --git a/src/@types/micromark.ts b/src/@types/micromark.ts index 0e0dc2465a..9725aabb9c 100644 --- a/src/@types/micromark.ts +++ b/src/@types/micromark.ts @@ -1,4 +1,3 @@ - export interface MicromarkExtensionContext { sliceSerialize(node: any): string; raw(value: string): void; @@ -9,4 +8,4 @@ export type MicromarkExtensionCallback = (this: MicromarkExtensionContext, node: export interface MicromarkExtension { enter?: Record; exit?: Record; -} \ No newline at end of file +} diff --git a/src/compiler/markdown/micromark-mdx-astro.ts b/src/compiler/markdown/micromark-mdx-astro.ts index 0ffd69fb1e..b978ad4078 100644 --- a/src/compiler/markdown/micromark-mdx-astro.ts +++ b/src/compiler/markdown/micromark-mdx-astro.ts @@ -2,7 +2,6 @@ import type { MicromarkExtension } from '../../@types/micromark'; import mdxExpression from 'micromark-extension-mdx-expression'; import mdxJsx from 'micromark-extension-mdx-jsx'; - /** * Keep MDX. */ @@ -12,12 +11,12 @@ export function encodeAstroMdx() { mdxJsxFlowTag(node: any) { const mdx = this.sliceSerialize(node); this.raw(mdx); - } - } + }, + }, }; return { htmlAstro: [mdxExpression(), mdxJsx()], - mdAstro: extension + mdAstro: extension, }; -} \ No newline at end of file +} diff --git a/src/compiler/markdown/micromark.d.ts b/src/compiler/markdown/micromark.d.ts index 1f389e4735..fd094306e7 100644 --- a/src/compiler/markdown/micromark.d.ts +++ b/src/compiler/markdown/micromark.d.ts @@ -1,11 +1,11 @@ declare module 'micromark-extension-mdx-expression' { import type { HtmlExtension } from 'micromark/dist/shared-types'; - export default function(): HtmlExtension; + export default function (): HtmlExtension; } declare module 'micromark-extension-mdx-jsx' { import type { HtmlExtension } from 'micromark/dist/shared-types'; - export default function(): HtmlExtension; -} \ No newline at end of file + export default function (): HtmlExtension; +}