@readme/markdown 11.5.2 → 11.7.0

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.d.ts CHANGED
@@ -6,7 +6,7 @@ declare const utils: {
6
6
  getHref: typeof getHref;
7
7
  calloutIcons: {};
8
8
  };
9
- export { compile, exports, hast, run, mdast, mdastV6, mdx, migrate, plain, remarkPlugins, tags } from './lib';
9
+ export { compile, exports, hast, run, mdast, mdastV6, mdx, migrate, plain, remarkPlugins, stripComments, tags } from './lib';
10
10
  export { default as Owlmoji } from './lib/owlmoji';
11
11
  export { Components, utils };
12
12
  export { tailwindCompiler } from './utils/tailwind-compiler';
@@ -10,3 +10,4 @@ export { default as migrate } from './migrate';
10
10
  export { default as plain } from './plain';
11
11
  export { default as run } from './run';
12
12
  export { default as tags } from './tags';
13
+ export { default as stripComments } from './stripComments';
@@ -1,4 +1,2 @@
1
- declare const migrate: (doc: string, { rdmd }: {
2
- rdmd: any;
3
- }) => string;
1
+ declare const migrate: (doc: string, opts: any) => string;
4
2
  export default migrate;
@@ -0,0 +1,8 @@
1
+ interface Opts {
2
+ mdx?: boolean;
3
+ }
4
+ /**
5
+ * Removes Markdown and MDX comments.
6
+ */
7
+ declare function stripComments(doc: string, { mdx }?: Opts): Promise<string>;
8
+ export default stripComments;
@@ -0,0 +1,2 @@
1
+ declare const migrateComments: (doc: string, migrateDoc: (doc: string, opts: any) => string, opts: any) => string;
2
+ export default migrateComments;