@tinacms/mdx 2.2.0 → 2.2.2
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/assert.d.ts +1 -0
- package/dist/assert.test.d.ts +1 -0
- package/dist/break-neighbours.test.d.ts +1 -0
- package/dist/break-representability/index.test.d.ts +1 -0
- package/dist/break-serialization.d.ts +12 -0
- package/dist/break-serialization.test.d.ts +1 -0
- package/dist/index.browser.js +23948 -35294
- package/dist/index.js +23923 -35269
- package/dist/link-children.test.d.ts +1 -0
- package/package.json +5 -10
package/dist/assert.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assert(value: unknown, message?: string): asserts value;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Md from 'mdast';
|
|
2
|
+
/**
|
|
3
|
+
* Reshape the tree so every hard break left in it is one markdown can express.
|
|
4
|
+
* Acts in place.
|
|
5
|
+
*
|
|
6
|
+
* Two ordered passes, not one. Splitting a heading that still holds a trailing
|
|
7
|
+
* break yields a second heading containing only what followed it — for
|
|
8
|
+
* `### [one⏎](/x)` that is an empty link, written out as `### [](/x)`. Trimming
|
|
9
|
+
* the whole tree first means the split only ever sees breaks with content on
|
|
10
|
+
* both sides.
|
|
11
|
+
*/
|
|
12
|
+
export declare const serializeBreaks: <T extends Md.Root>(tree: T) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|