@vxrn/mdx 1.1.322 → 1.1.324

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 CHANGED
@@ -17966,13 +17966,13 @@ function rehypeSlug(options2 = {}) {
17966
17966
  }
17967
17967
 
17968
17968
  // src/getMDXBySlug.tsx
17969
- var getMDXBySlug = async (basePath, slug2) => {
17969
+ var getMDXBySlug = async (basePath, slug2, extraPlugins) => {
17970
17970
  let mdxPath = slug2;
17971
17971
  if (!slug2.includes(".") && basePath.includes("components")) {
17972
17972
  let versions = getAllVersionsFromPath(import_node_path2.default.join(basePath, slug2));
17973
17973
  mdxPath += `/${versions[0]}`;
17974
17974
  }
17975
- let filePath = import_node_path2.default.join(basePath, `${mdxPath}.mdx`), source = import_node_fs2.default.readFileSync(filePath, "utf8"), { frontmatter, code } = await getMDX(source);
17975
+ let filePath = import_node_path2.default.join(basePath, `${mdxPath}.mdx`), source = import_node_fs2.default.readFileSync(filePath, "utf8"), { frontmatter, code } = await getMDX(source, extraPlugins);
17976
17976
  return {
17977
17977
  frontmatter: {
17978
17978
  ...frontmatter,