[ci] npm run format

This commit is contained in:
matthewp 2021-04-01 20:34:51 +00:00 committed by GitHub Actions
parent 54ba9f5ee1
commit 1d73883469
3 changed files with 8 additions and 10 deletions

View file

@ -1,4 +1,3 @@
export interface MicromarkExtensionContext {
sliceSerialize(node: any): string;
raw(value: string): void;

View file

@ -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,
};
}

View file

@ -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;
export default function (): HtmlExtension;
}