@readme/markdown 6.75.0-beta.71 → 6.75.0-beta.72

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.
@@ -1,8 +1,10 @@
1
1
  import remarkFrontmatter from 'remark-frontmatter';
2
2
  import remarkGfm from 'remark-gfm';
3
3
  import rehypeSlug from 'rehype-slug';
4
+ import { PluggableList } from 'unified';
4
5
  export type MdastOpts = {
5
6
  components?: Record<string, string>;
7
+ remarkPlugins?: PluggableList;
6
8
  };
7
9
  export declare const remarkPlugins: ((() => (tree: any) => void) | typeof remarkFrontmatter | typeof remarkGfm)[];
8
10
  export declare const rehypePlugins: (typeof rehypeSlug)[];
@@ -1,6 +1,4 @@
1
- interface Options {
2
- components?: Record<string, string>;
3
- }
4
- declare const hast: (text: string, opts?: Options) => import("hast").Root;
1
+ import { MdastOpts } from './ast-processor';
2
+ declare const hast: (text: string, opts?: MdastOpts) => import("hast").Root;
5
3
  export declare const hastFromHtml: (html: string) => import("hast").Root;
6
4
  export default hast;
package/dist/main.js CHANGED
@@ -66277,6 +66277,7 @@ const rehypePlugins = [rehypeSlug];
66277
66277
  const astProcessor = (opts = { components: {} }) => remark()
66278
66278
  .use(remarkMdx)
66279
66279
  .use(remarkPlugins)
66280
+ .use(opts.remarkPlugins)
66280
66281
  .use(transform_variables, { asMdx: false })
66281
66282
  .use(readme_components({ components: opts.components }));
66282
66283
  /* harmony default export */ const ast_processor = (astProcessor);
package/dist/main.node.js CHANGED
@@ -67730,6 +67730,7 @@ const rehypePlugins = [rehypeSlug];
67730
67730
  const astProcessor = (opts = { components: {} }) => remark()
67731
67731
  .use(remarkMdx)
67732
67732
  .use(remarkPlugins)
67733
+ .use(opts.remarkPlugins)
67733
67734
  .use(transform_variables, { asMdx: false })
67734
67735
  .use(readme_components({ components: opts.components }));
67735
67736
  /* harmony default export */ const ast_processor = (astProcessor);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.75.0-beta.71",
5
+ "version": "6.75.0-beta.72",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",