summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/src/rehype-collect-headings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/mdx/src/rehype-collect-headings.ts')
-rw-r--r--packages/integrations/mdx/src/rehype-collect-headings.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/mdx/src/rehype-collect-headings.ts b/packages/integrations/mdx/src/rehype-collect-headings.ts
index 69e3f9b1b..fafc59721 100644
--- a/packages/integrations/mdx/src/rehype-collect-headings.ts
+++ b/packages/integrations/mdx/src/rehype-collect-headings.ts
@@ -5,7 +5,7 @@ export function rehypeInjectHeadingsExport() {
return function (tree: any, file: MarkdownVFile) {
const headings: MarkdownHeading[] = file.data.__astroHeadings || [];
tree.children.unshift(
- jsToTreeNode(`export function getHeadings() { return ${JSON.stringify(headings)} }`)
+ jsToTreeNode(`export function getHeadings() { return ${JSON.stringify(headings)} }`),
);
};
}