better formatting

This commit is contained in:
Hellings 2026-10-23 09:12:49 -04:00
parent ea50aafde6
commit df06da280b
2 changed files with 28 additions and 17 deletions

View file

@ -10,5 +10,16 @@ export async function renderMdx(source: string): Promise<string> {
}
export function mdxIntegration(): Integration {
return { name: "mdx", setup(context) { context.loader("mdx", { name: "mdx", extensions: [".mdx"], async load(file) { return { data: {}, content: await renderMdx(file.source) }; } }); } };
return {
name: "mdx",
setup(context) {
context.loader("mdx", {
name: "mdx",
extensions: [".mdx"],
async load(file) {
return { data: {}, content: await renderMdx(file.source) };
},
});
},
};
}