@vxrn/mdx 1.2.41 → 1.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/getHeadings.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -9712,7 +9712,7 @@ var getTitle = (source) => source.replace(/^#+\s+/, "").replace(/<.*>/, " "), ge
|
|
|
9712
9712
|
`).filter((x) => x.startsWith("#")).map((x) => ({
|
|
9713
9713
|
title: getTitle(x),
|
|
9714
9714
|
priority: x.trim().split(" ")[0].length,
|
|
9715
|
-
id:
|
|
9715
|
+
id: getTitle(x).replace(/\s+/g, "-").toLowerCase()
|
|
9716
9716
|
}));
|
|
9717
9717
|
|
|
9718
9718
|
// src/getAllFrontmatter.tsx
|