@readme/markdown 11.6.0 → 11.7.1

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,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,17 @@
1
+ interface BlockHit {
2
+ raw: string;
3
+ token: string;
4
+ }
5
+ /**
6
+ * Extract legacy magic block syntax from a markdown string.
7
+ * Returns the modified markdown and an array of extracted blocks.
8
+ */
9
+ export declare function extractMagicBlocks(markdown: string): {
10
+ replaced: string;
11
+ blocks: BlockHit[];
12
+ };
13
+ /**
14
+ * Restore extracted magic blocks back into a markdown string.
15
+ */
16
+ export declare function restoreMagicBlocks(replaced: string, blocks: BlockHit[]): string;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const migrateComments: (doc: string, migrateDoc: (doc: string, opts: any) => string, opts: any) => string;
2
+ export default migrateComments;