diff --git a/frontend/src/lib/requests/getConstitution.ts b/frontend/src/lib/requests/getConstitution.ts index b4d8fa2d..86ab109a 100644 --- a/frontend/src/lib/requests/getConstitution.ts +++ b/frontend/src/lib/requests/getConstitution.ts @@ -17,17 +17,14 @@ export async function getConstitution(): Promise { const mdxSource = await serialize(mdxContent, { mdxOptions: { remarkPlugins: [remarkToc], - rehypePlugins: [ - rehypeSlug, - [rehypeToc, { headings: ["h2", "h3", "h4"] }] - ] - } + rehypePlugins: [rehypeSlug, [rehypeToc, { headings: ["h2", "h3"] }]], + }, }); return mdxSource; } catch (error) { return { error: "Error fetching and processing MDX content:", - statusCode: error.res?.statusCode || null + statusCode: error.res?.statusCode || null, }; } }