@isdk/mdast-plus 0.2.3 → 0.3.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/README.cn.md +21 -5
- package/README.md +21 -5
- package/dist/index.d.mts +41 -3
- package/dist/index.d.ts +41 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/README.md +21 -5
- package/docs/_media/CONTRIBUTING.md +10 -0
- package/docs/_media/README.cn.md +21 -5
- package/docs/classes/MdastBasePipeline.md +20 -20
- package/docs/classes/MdastPipeline.md +27 -27
- package/docs/enumerations/PipelineStage.md +6 -6
- package/docs/functions/astCompiler.md +1 -1
- package/docs/functions/checkHtmlUrlExists.md +25 -0
- package/docs/functions/checkUrlExists.md +25 -0
- package/docs/functions/jsonParser.md +1 -1
- package/docs/functions/mdast.md +1 -1
- package/docs/globals.md +3 -0
- package/docs/interfaces/MdastDataOrigin.md +4 -4
- package/docs/interfaces/MdastFormat.md +7 -7
- package/docs/interfaces/MdastMark.md +3 -3
- package/docs/interfaces/MdastPlugin.md +9 -9
- package/docs/interfaces/MdastSub.md +3 -3
- package/docs/interfaces/MdastSup.md +3 -3
- package/docs/interfaces/PipelineRunOptions.md +4 -4
- package/docs/interfaces/ReadabilityOptions.md +67 -6
- package/docs/interfaces/SmartExcerptOptions.md +43 -0
- package/docs/type-aliases/PipelineStageName.md +1 -1
- package/docs/variables/DefaultPipelineStage.md +1 -1
- package/docs/variables/astFormat.md +1 -1
- package/docs/variables/htmlFormat.md +1 -1
- package/docs/variables/htmlReadability.md +1 -1
- package/docs/variables/htmlReadabilityPlugin.md +1 -1
- package/docs/variables/htmlReadabilityPlugins.md +2 -2
- package/docs/variables/markdownFormat.md +1 -1
- package/docs/variables/restoreReadabilityMetaPlugin.md +8 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: MdastBasePipeline
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:42](https://github.com/isdk/mdast-plus.js/blob/
|
|
9
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:42](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L42)
|
|
10
10
|
|
|
11
11
|
Base implementation of the fluent mdast processing pipeline.
|
|
12
12
|
Manages the plugin registry and the execution queue.
|
|
@@ -21,7 +21,7 @@ Manages the plugin registry and the execution queue.
|
|
|
21
21
|
|
|
22
22
|
> **new MdastBasePipeline**(`input`): `MdastBasePipeline`
|
|
23
23
|
|
|
24
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:70](https://github.com/isdk/mdast-plus.js/blob/
|
|
24
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:70](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L70)
|
|
25
25
|
|
|
26
26
|
Initializes a new pipeline instance with the given input.
|
|
27
27
|
|
|
@@ -43,7 +43,7 @@ Content to process (string, Buffer, VFile, or AST Node).
|
|
|
43
43
|
|
|
44
44
|
> `protected` **\_data**: `Record`\<`string`, `any`\> = `{}`
|
|
45
45
|
|
|
46
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mdast-plus.js/blob/
|
|
46
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L64)
|
|
47
47
|
|
|
48
48
|
***
|
|
49
49
|
|
|
@@ -51,7 +51,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mda
|
|
|
51
51
|
|
|
52
52
|
> `protected` **input**: `Compatible`
|
|
53
53
|
|
|
54
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mdast-plus.js/blob/
|
|
54
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L62)
|
|
55
55
|
|
|
56
56
|
***
|
|
57
57
|
|
|
@@ -59,7 +59,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mda
|
|
|
59
59
|
|
|
60
60
|
> `protected` **queue**: [`MdastPlugin`](../interfaces/MdastPlugin.md)[] = `[]`
|
|
61
61
|
|
|
62
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mdast-plus.js/blob/
|
|
62
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L63)
|
|
63
63
|
|
|
64
64
|
## Methods
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mda
|
|
|
67
67
|
|
|
68
68
|
> `protected` **assembleProcessor**(`queue`): `Processor`
|
|
69
69
|
|
|
70
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:494](https://github.com/isdk/mdast-plus.js/blob/
|
|
70
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:494](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L494)
|
|
71
71
|
|
|
72
72
|
Assembles a unified processor based on the sorted plugin queue.
|
|
73
73
|
|
|
@@ -87,7 +87,7 @@ Assembles a unified processor based on the sorted plugin queue.
|
|
|
87
87
|
|
|
88
88
|
> **configure**(`pluginName`, ...`options`): `this`
|
|
89
89
|
|
|
90
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:478](https://github.com/isdk/mdast-plus.js/blob/
|
|
90
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:478](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L478)
|
|
91
91
|
|
|
92
92
|
Modifies the options of a plugin that is already in the pipeline queue.
|
|
93
93
|
Searches from the end of the queue and updates the first match found.
|
|
@@ -119,7 +119,7 @@ The pipeline instance for chaining.
|
|
|
119
119
|
|
|
120
120
|
> **data**(`key`, `value?`): `this`
|
|
121
121
|
|
|
122
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:80](https://github.com/isdk/mdast-plus.js/blob/
|
|
122
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:80](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L80)
|
|
123
123
|
|
|
124
124
|
Configures global data for the pipeline, which will be available to all plugins via this.data().
|
|
125
125
|
|
|
@@ -149,7 +149,7 @@ The pipeline instance for chaining.
|
|
|
149
149
|
|
|
150
150
|
> `protected` **ensureInputPlugins**(`queue`, `overrides?`, `maxStage?`): `void`
|
|
151
151
|
|
|
152
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:165](https://github.com/isdk/mdast-plus.js/blob/
|
|
152
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:165](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L165)
|
|
153
153
|
|
|
154
154
|
Ensures that input plugins (parser, normalizers) are present in the queue.
|
|
155
155
|
Adds implicit plugins if no parser is detected.
|
|
@@ -178,7 +178,7 @@ Adds implicit plugins if no parser is detected.
|
|
|
178
178
|
|
|
179
179
|
> **from**(`fmt`, `overrides?`): `this`
|
|
180
180
|
|
|
181
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:194](https://github.com/isdk/mdast-plus.js/blob/
|
|
181
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:194](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L194)
|
|
182
182
|
|
|
183
183
|
Configures the input format and adds its associated plugins to the pipeline.
|
|
184
184
|
|
|
@@ -208,7 +208,7 @@ The pipeline instance for chaining.
|
|
|
208
208
|
|
|
209
209
|
> **getFormat**(`id`): `undefined` \| [`MdastFormat`](../interfaces/MdastFormat.md)
|
|
210
210
|
|
|
211
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:92](https://github.com/isdk/mdast-plus.js/blob/
|
|
211
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:92](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L92)
|
|
212
212
|
|
|
213
213
|
Instance-level access to the global format registry.
|
|
214
214
|
|
|
@@ -228,7 +228,7 @@ Instance-level access to the global format registry.
|
|
|
228
228
|
|
|
229
229
|
> **priority**(`order`): `this`
|
|
230
230
|
|
|
231
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:461](https://github.com/isdk/mdast-plus.js/blob/
|
|
231
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:461](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L461)
|
|
232
232
|
|
|
233
233
|
Sets the priority order for the most recently added plugin.
|
|
234
234
|
Plugins with lower order run earlier within the same stage.
|
|
@@ -253,7 +253,7 @@ The pipeline instance for chaining.
|
|
|
253
253
|
|
|
254
254
|
> `protected` **resolveRunQueue**(`format`, `overrides?`, `stage?`, `stopAtIndex?`): [`MdastPlugin`](../interfaces/MdastPlugin.md)[]
|
|
255
255
|
|
|
256
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:214](https://github.com/isdk/mdast-plus.js/blob/
|
|
256
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:214](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L214)
|
|
257
257
|
|
|
258
258
|
Resolves the final plugin queue for execution based on the target format and run options.
|
|
259
259
|
Calculates the effective plugin list by applying overrides, handling partial execution (stage/stopAtIndex),
|
|
@@ -287,7 +287,7 @@ and injecting necessary input/output plugins.
|
|
|
287
287
|
|
|
288
288
|
> **to**(`fmt`, `optionsOrOverrides?`): `Promise`\<`VFile`\>
|
|
289
289
|
|
|
290
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:290](https://github.com/isdk/mdast-plus.js/blob/
|
|
290
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:290](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L290)
|
|
291
291
|
|
|
292
292
|
Processes the pipeline and serializes the result into the specified format.
|
|
293
293
|
|
|
@@ -317,7 +317,7 @@ A promise resolving to a VFile containing the result.
|
|
|
317
317
|
|
|
318
318
|
> `protected` **toRuntimeEntry**(`entry`, `defaultStage`, `overrides?`): [`MdastPlugin`](../interfaces/MdastPlugin.md) & `object`
|
|
319
319
|
|
|
320
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:116](https://github.com/isdk/mdast-plus.js/blob/
|
|
320
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:116](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L116)
|
|
321
321
|
|
|
322
322
|
Normalizes a plugin entry for runtime execution.
|
|
323
323
|
|
|
@@ -345,7 +345,7 @@ Normalizes a plugin entry for runtime execution.
|
|
|
345
345
|
|
|
346
346
|
> **use**(`plugin`, ...`options`): `this`
|
|
347
347
|
|
|
348
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:336](https://github.com/isdk/mdast-plus.js/blob/
|
|
348
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:336](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L336)
|
|
349
349
|
|
|
350
350
|
Adds a plugin or an array of plugins to the pipeline's compile stage.
|
|
351
351
|
|
|
@@ -377,7 +377,7 @@ The pipeline instance for chaining.
|
|
|
377
377
|
|
|
378
378
|
> **useAt**(`stage`, `plugin`, ...`options`): `this`
|
|
379
379
|
|
|
380
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:418](https://github.com/isdk/mdast-plus.js/blob/
|
|
380
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:418](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L418)
|
|
381
381
|
|
|
382
382
|
Adds a plugin or an array of plugins to the pipeline at a specific stage.
|
|
383
383
|
|
|
@@ -411,7 +411,7 @@ The pipeline instance for chaining.
|
|
|
411
411
|
|
|
412
412
|
> **useAt**(`plugin`, ...`options`): `this`
|
|
413
413
|
|
|
414
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:425](https://github.com/isdk/mdast-plus.js/blob/
|
|
414
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:425](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L425)
|
|
415
415
|
|
|
416
416
|
Adds a plugin or an array of plugins to the pipeline. The stage is taken from the plugin object(s) or defaults to 'compile'.
|
|
417
417
|
|
|
@@ -441,7 +441,7 @@ The pipeline instance for chaining.
|
|
|
441
441
|
|
|
442
442
|
> `static` **getFormat**(`id`): `undefined` \| [`MdastFormat`](../interfaces/MdastFormat.md)
|
|
443
443
|
|
|
444
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:58](https://github.com/isdk/mdast-plus.js/blob/
|
|
444
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:58](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L58)
|
|
445
445
|
|
|
446
446
|
Retrieves a registered format by its ID.
|
|
447
447
|
|
|
@@ -465,7 +465,7 @@ The format definition or undefined if not found.
|
|
|
465
465
|
|
|
466
466
|
> `static` **register**(`format`): `void`
|
|
467
467
|
|
|
468
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:49](https://github.com/isdk/mdast-plus.js/blob/
|
|
468
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:49](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L49)
|
|
469
469
|
|
|
470
470
|
Registers a global document format.
|
|
471
471
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: MdastPipeline
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:575](https://github.com/isdk/mdast-plus.js/blob/
|
|
9
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:575](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L575)
|
|
10
10
|
|
|
11
11
|
Extended pipeline with convenience methods for common formats.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ Extended pipeline with convenience methods for common formats.
|
|
|
20
20
|
|
|
21
21
|
> **new MdastPipeline**(`input`): `MdastPipeline`
|
|
22
22
|
|
|
23
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:70](https://github.com/isdk/mdast-plus.js/blob/
|
|
23
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:70](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L70)
|
|
24
24
|
|
|
25
25
|
Initializes a new pipeline instance with the given input.
|
|
26
26
|
|
|
@@ -46,7 +46,7 @@ Content to process (string, Buffer, VFile, or AST Node).
|
|
|
46
46
|
|
|
47
47
|
> `protected` **\_data**: `Record`\<`string`, `any`\> = `{}`
|
|
48
48
|
|
|
49
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mdast-plus.js/blob/
|
|
49
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L64)
|
|
50
50
|
|
|
51
51
|
#### Inherited from
|
|
52
52
|
|
|
@@ -58,7 +58,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:64](https://github.com/isdk/mda
|
|
|
58
58
|
|
|
59
59
|
> `protected` **input**: `Compatible`
|
|
60
60
|
|
|
61
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mdast-plus.js/blob/
|
|
61
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L62)
|
|
62
62
|
|
|
63
63
|
#### Inherited from
|
|
64
64
|
|
|
@@ -70,7 +70,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:62](https://github.com/isdk/mda
|
|
|
70
70
|
|
|
71
71
|
> `protected` **queue**: [`MdastPlugin`](../interfaces/MdastPlugin.md)[] = `[]`
|
|
72
72
|
|
|
73
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mdast-plus.js/blob/
|
|
73
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L63)
|
|
74
74
|
|
|
75
75
|
#### Inherited from
|
|
76
76
|
|
|
@@ -82,7 +82,7 @@ Defined in: [packages/mdast-plus/src/pipeline.ts:63](https://github.com/isdk/mda
|
|
|
82
82
|
|
|
83
83
|
> `protected` **assembleProcessor**(`queue`): `Processor`
|
|
84
84
|
|
|
85
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:494](https://github.com/isdk/mdast-plus.js/blob/
|
|
85
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:494](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L494)
|
|
86
86
|
|
|
87
87
|
Assembles a unified processor based on the sorted plugin queue.
|
|
88
88
|
|
|
@@ -106,7 +106,7 @@ Assembles a unified processor based on the sorted plugin queue.
|
|
|
106
106
|
|
|
107
107
|
> **configure**(`pluginName`, ...`options`): `this`
|
|
108
108
|
|
|
109
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:478](https://github.com/isdk/mdast-plus.js/blob/
|
|
109
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:478](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L478)
|
|
110
110
|
|
|
111
111
|
Modifies the options of a plugin that is already in the pipeline queue.
|
|
112
112
|
Searches from the end of the queue and updates the first match found.
|
|
@@ -142,7 +142,7 @@ The pipeline instance for chaining.
|
|
|
142
142
|
|
|
143
143
|
> **data**(`key`, `value?`): `this`
|
|
144
144
|
|
|
145
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:80](https://github.com/isdk/mdast-plus.js/blob/
|
|
145
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:80](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L80)
|
|
146
146
|
|
|
147
147
|
Configures global data for the pipeline, which will be available to all plugins via this.data().
|
|
148
148
|
|
|
@@ -176,7 +176,7 @@ The pipeline instance for chaining.
|
|
|
176
176
|
|
|
177
177
|
> `protected` **ensureInputPlugins**(`queue`, `overrides?`, `maxStage?`): `void`
|
|
178
178
|
|
|
179
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:165](https://github.com/isdk/mdast-plus.js/blob/
|
|
179
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:165](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L165)
|
|
180
180
|
|
|
181
181
|
Ensures that input plugins (parser, normalizers) are present in the queue.
|
|
182
182
|
Adds implicit plugins if no parser is detected.
|
|
@@ -209,7 +209,7 @@ Adds implicit plugins if no parser is detected.
|
|
|
209
209
|
|
|
210
210
|
> **from**(`fmt`, `overrides?`): `this`
|
|
211
211
|
|
|
212
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:194](https://github.com/isdk/mdast-plus.js/blob/
|
|
212
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:194](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L194)
|
|
213
213
|
|
|
214
214
|
Configures the input format and adds its associated plugins to the pipeline.
|
|
215
215
|
|
|
@@ -243,7 +243,7 @@ The pipeline instance for chaining.
|
|
|
243
243
|
|
|
244
244
|
> **getFormat**(`id`): `undefined` \| [`MdastFormat`](../interfaces/MdastFormat.md)
|
|
245
245
|
|
|
246
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:92](https://github.com/isdk/mdast-plus.js/blob/
|
|
246
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:92](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L92)
|
|
247
247
|
|
|
248
248
|
Instance-level access to the global format registry.
|
|
249
249
|
|
|
@@ -267,7 +267,7 @@ Instance-level access to the global format registry.
|
|
|
267
267
|
|
|
268
268
|
> **priority**(`order`): `this`
|
|
269
269
|
|
|
270
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:461](https://github.com/isdk/mdast-plus.js/blob/
|
|
270
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:461](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L461)
|
|
271
271
|
|
|
272
272
|
Sets the priority order for the most recently added plugin.
|
|
273
273
|
Plugins with lower order run earlier within the same stage.
|
|
@@ -296,7 +296,7 @@ The pipeline instance for chaining.
|
|
|
296
296
|
|
|
297
297
|
> `protected` **resolveRunQueue**(`format`, `overrides?`, `stage?`, `stopAtIndex?`): [`MdastPlugin`](../interfaces/MdastPlugin.md)[]
|
|
298
298
|
|
|
299
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:214](https://github.com/isdk/mdast-plus.js/blob/
|
|
299
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:214](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L214)
|
|
300
300
|
|
|
301
301
|
Resolves the final plugin queue for execution based on the target format and run options.
|
|
302
302
|
Calculates the effective plugin list by applying overrides, handling partial execution (stage/stopAtIndex),
|
|
@@ -334,7 +334,7 @@ and injecting necessary input/output plugins.
|
|
|
334
334
|
|
|
335
335
|
> **to**(`fmt`, `optionsOrOverrides?`): `Promise`\<`VFile`\>
|
|
336
336
|
|
|
337
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:290](https://github.com/isdk/mdast-plus.js/blob/
|
|
337
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:290](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L290)
|
|
338
338
|
|
|
339
339
|
Processes the pipeline and serializes the result into the specified format.
|
|
340
340
|
|
|
@@ -368,7 +368,7 @@ A promise resolving to a VFile containing the result.
|
|
|
368
368
|
|
|
369
369
|
> **toAst**(`options?`): `Promise`\<`Root`\>
|
|
370
370
|
|
|
371
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:613](https://github.com/isdk/mdast-plus.js/blob/
|
|
371
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:613](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L613)
|
|
372
372
|
|
|
373
373
|
Finalizes the pipeline and returns the resulting AST (Root node).
|
|
374
374
|
|
|
@@ -390,7 +390,7 @@ Configuration for the extraction.
|
|
|
390
390
|
|
|
391
391
|
> **toAST**(`options?`): `Promise`\<`Root`\>
|
|
392
392
|
|
|
393
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:621](https://github.com/isdk/mdast-plus.js/blob/
|
|
393
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:621](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L621)
|
|
394
394
|
|
|
395
395
|
Alias for toAst()
|
|
396
396
|
|
|
@@ -420,7 +420,7 @@ Alias for toAst()
|
|
|
420
420
|
|
|
421
421
|
> **toHtml**(): `Promise`\<`string`\>
|
|
422
422
|
|
|
423
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:594](https://github.com/isdk/mdast-plus.js/blob/
|
|
423
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:594](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L594)
|
|
424
424
|
|
|
425
425
|
Finalizes the pipeline and returns the result as an HTML string.
|
|
426
426
|
|
|
@@ -434,7 +434,7 @@ Finalizes the pipeline and returns the result as an HTML string.
|
|
|
434
434
|
|
|
435
435
|
> **toHTML**(): `Promise`\<`string`\>
|
|
436
436
|
|
|
437
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:619](https://github.com/isdk/mdast-plus.js/blob/
|
|
437
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:619](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L619)
|
|
438
438
|
|
|
439
439
|
Alias for toHtml()
|
|
440
440
|
|
|
@@ -448,7 +448,7 @@ Alias for toHtml()
|
|
|
448
448
|
|
|
449
449
|
> **toHtmlVFile**(): `Promise`\<`VFile`\>
|
|
450
450
|
|
|
451
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:602](https://github.com/isdk/mdast-plus.js/blob/
|
|
451
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:602](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L602)
|
|
452
452
|
|
|
453
453
|
Finalizes the pipeline and returns a VFile containing the HTML result.
|
|
454
454
|
|
|
@@ -462,7 +462,7 @@ Finalizes the pipeline and returns a VFile containing the HTML result.
|
|
|
462
462
|
|
|
463
463
|
> **toMarkdown**(): `Promise`\<`string`\>
|
|
464
464
|
|
|
465
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:579](https://github.com/isdk/mdast-plus.js/blob/
|
|
465
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:579](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L579)
|
|
466
466
|
|
|
467
467
|
Finalizes the pipeline and returns the result as a Markdown string.
|
|
468
468
|
|
|
@@ -476,7 +476,7 @@ Finalizes the pipeline and returns the result as a Markdown string.
|
|
|
476
476
|
|
|
477
477
|
> **toMarkdownVFile**(): `Promise`\<`VFile`\>
|
|
478
478
|
|
|
479
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:587](https://github.com/isdk/mdast-plus.js/blob/
|
|
479
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:587](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L587)
|
|
480
480
|
|
|
481
481
|
Finalizes the pipeline and returns a VFile containing the Markdown result.
|
|
482
482
|
|
|
@@ -490,7 +490,7 @@ Finalizes the pipeline and returns a VFile containing the Markdown result.
|
|
|
490
490
|
|
|
491
491
|
> `protected` **toRuntimeEntry**(`entry`, `defaultStage`, `overrides?`): [`MdastPlugin`](../interfaces/MdastPlugin.md) & `object`
|
|
492
492
|
|
|
493
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:116](https://github.com/isdk/mdast-plus.js/blob/
|
|
493
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:116](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L116)
|
|
494
494
|
|
|
495
495
|
Normalizes a plugin entry for runtime execution.
|
|
496
496
|
|
|
@@ -522,7 +522,7 @@ Normalizes a plugin entry for runtime execution.
|
|
|
522
522
|
|
|
523
523
|
> **use**(`plugin`, ...`options`): `this`
|
|
524
524
|
|
|
525
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:336](https://github.com/isdk/mdast-plus.js/blob/
|
|
525
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:336](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L336)
|
|
526
526
|
|
|
527
527
|
Adds a plugin or an array of plugins to the pipeline's compile stage.
|
|
528
528
|
|
|
@@ -558,7 +558,7 @@ The pipeline instance for chaining.
|
|
|
558
558
|
|
|
559
559
|
> **useAt**(`stage`, `plugin`, ...`options`): `this`
|
|
560
560
|
|
|
561
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:418](https://github.com/isdk/mdast-plus.js/blob/
|
|
561
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:418](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L418)
|
|
562
562
|
|
|
563
563
|
Adds a plugin or an array of plugins to the pipeline at a specific stage.
|
|
564
564
|
|
|
@@ -596,7 +596,7 @@ The pipeline instance for chaining.
|
|
|
596
596
|
|
|
597
597
|
> **useAt**(`plugin`, ...`options`): `this`
|
|
598
598
|
|
|
599
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:425](https://github.com/isdk/mdast-plus.js/blob/
|
|
599
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:425](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L425)
|
|
600
600
|
|
|
601
601
|
Adds a plugin or an array of plugins to the pipeline. The stage is taken from the plugin object(s) or defaults to 'compile'.
|
|
602
602
|
|
|
@@ -630,7 +630,7 @@ The pipeline instance for chaining.
|
|
|
630
630
|
|
|
631
631
|
> `static` **getFormat**(`id`): `undefined` \| [`MdastFormat`](../interfaces/MdastFormat.md)
|
|
632
632
|
|
|
633
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:58](https://github.com/isdk/mdast-plus.js/blob/
|
|
633
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:58](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L58)
|
|
634
634
|
|
|
635
635
|
Retrieves a registered format by its ID.
|
|
636
636
|
|
|
@@ -658,7 +658,7 @@ The format definition or undefined if not found.
|
|
|
658
658
|
|
|
659
659
|
> `static` **register**(`format`): `void`
|
|
660
660
|
|
|
661
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:49](https://github.com/isdk/mdast-plus.js/blob/
|
|
661
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:49](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L49)
|
|
662
662
|
|
|
663
663
|
Registers a global document format.
|
|
664
664
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Enumeration: PipelineStage
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/mdast-plus/src/types.ts:10](https://github.com/isdk/mdast-plus.js/blob/
|
|
9
|
+
Defined in: [packages/mdast-plus/src/types.ts:10](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L10)
|
|
10
10
|
|
|
11
11
|
PipelineStage defines the execution order of plugins in the processing pipeline.
|
|
12
12
|
Plugins are sorted and executed in ascending order based on these stage values.
|
|
@@ -17,7 +17,7 @@ Plugins are sorted and executed in ascending order based on these stage values.
|
|
|
17
17
|
|
|
18
18
|
> **compile**: `200`
|
|
19
19
|
|
|
20
|
-
Defined in: [packages/mdast-plus/src/types.ts:16](https://github.com/isdk/mdast-plus.js/blob/
|
|
20
|
+
Defined in: [packages/mdast-plus/src/types.ts:16](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L16)
|
|
21
21
|
|
|
22
22
|
Transformation stage for semantic changes and custom high-level logic.
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ Transformation stage for semantic changes and custom high-level logic.
|
|
|
27
27
|
|
|
28
28
|
> **finalize**: `300`
|
|
29
29
|
|
|
30
|
-
Defined in: [packages/mdast-plus/src/types.ts:18](https://github.com/isdk/mdast-plus.js/blob/
|
|
30
|
+
Defined in: [packages/mdast-plus/src/types.ts:18](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L18)
|
|
31
31
|
|
|
32
32
|
Finalization stage for preparing the AST for output (e.g., Sanitize, bridge to HAST).
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ Finalization stage for preparing the AST for output (e.g., Sanitize, bridge to H
|
|
|
37
37
|
|
|
38
38
|
> **normalize**: `100`
|
|
39
39
|
|
|
40
|
-
Defined in: [packages/mdast-plus/src/types.ts:14](https://github.com/isdk/mdast-plus.js/blob/
|
|
40
|
+
Defined in: [packages/mdast-plus/src/types.ts:14](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L14)
|
|
41
41
|
|
|
42
42
|
Normalization stage for cleaning up and canonicalizing the AST (e.g., GFM, Directives).
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ Normalization stage for cleaning up and canonicalizing the AST (e.g., GFM, Direc
|
|
|
47
47
|
|
|
48
48
|
> **parse**: `0`
|
|
49
49
|
|
|
50
|
-
Defined in: [packages/mdast-plus/src/types.ts:12](https://github.com/isdk/mdast-plus.js/blob/
|
|
50
|
+
Defined in: [packages/mdast-plus/src/types.ts:12](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L12)
|
|
51
51
|
|
|
52
52
|
Initial stage for parsing raw input (e.g., string to AST).
|
|
53
53
|
|
|
@@ -57,6 +57,6 @@ Initial stage for parsing raw input (e.g., string to AST).
|
|
|
57
57
|
|
|
58
58
|
> **stringify**: `400`
|
|
59
59
|
|
|
60
|
-
Defined in: [packages/mdast-plus/src/types.ts:20](https://github.com/isdk/mdast-plus.js/blob/
|
|
60
|
+
Defined in: [packages/mdast-plus/src/types.ts:20](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L20)
|
|
61
61
|
|
|
62
62
|
Final stage for serializing the AST to the target format result.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **astCompiler**(`this`): `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [packages/mdast-plus/src/formats/ast.ts:16](https://github.com/isdk/mdast-plus.js/blob/
|
|
11
|
+
Defined in: [packages/mdast-plus/src/formats/ast.ts:16](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/formats/ast.ts#L16)
|
|
12
12
|
|
|
13
13
|
Pass-through compiler that returns the AST as-is.
|
|
14
14
|
Essential for unified processes that should output an object (the AST)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@isdk/mdast-plus**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/mdast-plus](../globals.md) / checkHtmlUrlExists
|
|
6
|
+
|
|
7
|
+
# Function: checkHtmlUrlExists()
|
|
8
|
+
|
|
9
|
+
> **checkHtmlUrlExists**(`tree`, `url`): `boolean`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/mdast-plus/src/plugins/html-readability.ts:316](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/plugins/html-readability.ts#L316)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### tree
|
|
16
|
+
|
|
17
|
+
`any`
|
|
18
|
+
|
|
19
|
+
### url
|
|
20
|
+
|
|
21
|
+
`string`
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`boolean`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@isdk/mdast-plus**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/mdast-plus](../globals.md) / checkUrlExists
|
|
6
|
+
|
|
7
|
+
# Function: checkUrlExists()
|
|
8
|
+
|
|
9
|
+
> **checkUrlExists**(`tree`, `url`): `boolean`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/mdast-plus/src/plugins/html-readability.ts:302](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/plugins/html-readability.ts#L302)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### tree
|
|
16
|
+
|
|
17
|
+
`any`
|
|
18
|
+
|
|
19
|
+
### url
|
|
20
|
+
|
|
21
|
+
`string`
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`boolean`
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **jsonParser**(`this`): `void`
|
|
10
10
|
|
|
11
|
-
Defined in: [packages/mdast-plus/src/formats/ast.ts:24](https://github.com/isdk/mdast-plus.js/blob/
|
|
11
|
+
Defined in: [packages/mdast-plus/src/formats/ast.ts:24](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/formats/ast.ts#L24)
|
|
12
12
|
|
|
13
13
|
Parser for stringified JSON AST input.
|
|
14
14
|
Allows the pipeline to accept a JSON string and treat it as a unist tree.
|
package/docs/functions/mdast.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **mdast**(`input`): [`MdastPipeline`](../classes/MdastPipeline.md)
|
|
10
10
|
|
|
11
|
-
Defined in: [packages/mdast-plus/src/pipeline.ts:633](https://github.com/isdk/mdast-plus.js/blob/
|
|
11
|
+
Defined in: [packages/mdast-plus/src/pipeline.ts:633](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/pipeline.ts#L633)
|
|
12
12
|
|
|
13
13
|
Entry point for the fluent mdast-plus API.
|
|
14
14
|
|
package/docs/globals.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
- [MdastSup](interfaces/MdastSup.md)
|
|
24
24
|
- [PipelineRunOptions](interfaces/PipelineRunOptions.md)
|
|
25
25
|
- [ReadabilityOptions](interfaces/ReadabilityOptions.md)
|
|
26
|
+
- [SmartExcerptOptions](interfaces/SmartExcerptOptions.md)
|
|
26
27
|
|
|
27
28
|
## Type Aliases
|
|
28
29
|
|
|
@@ -42,5 +43,7 @@
|
|
|
42
43
|
## Functions
|
|
43
44
|
|
|
44
45
|
- [astCompiler](functions/astCompiler.md)
|
|
46
|
+
- [checkHtmlUrlExists](functions/checkHtmlUrlExists.md)
|
|
47
|
+
- [checkUrlExists](functions/checkUrlExists.md)
|
|
45
48
|
- [jsonParser](functions/jsonParser.md)
|
|
46
49
|
- [mdast](functions/mdast.md)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: MdastDataOrigin
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/mdast-plus/src/types.ts:107](https://github.com/isdk/mdast-plus.js/blob/
|
|
9
|
+
Defined in: [packages/mdast-plus/src/types.ts:107](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L107)
|
|
10
10
|
|
|
11
11
|
Metadata capturing the origin of a node during conversion.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ Metadata capturing the origin of a node during conversion.
|
|
|
20
20
|
|
|
21
21
|
> **format**: `string`
|
|
22
22
|
|
|
23
|
-
Defined in: [packages/mdast-plus/src/types.ts:109](https://github.com/isdk/mdast-plus.js/blob/
|
|
23
|
+
Defined in: [packages/mdast-plus/src/types.ts:109](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L109)
|
|
24
24
|
|
|
25
25
|
The original source format.
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ The original source format.
|
|
|
30
30
|
|
|
31
31
|
> `optional` **hash**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/mdast-plus/src/types.ts:113](https://github.com/isdk/mdast-plus.js/blob/
|
|
33
|
+
Defined in: [packages/mdast-plus/src/types.ts:113](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L113)
|
|
34
34
|
|
|
35
35
|
Hash used for caching or change detection.
|
|
36
36
|
|
|
@@ -40,6 +40,6 @@ Hash used for caching or change detection.
|
|
|
40
40
|
|
|
41
41
|
> `optional` **raw**: `unknown`
|
|
42
42
|
|
|
43
|
-
Defined in: [packages/mdast-plus/src/types.ts:111](https://github.com/isdk/mdast-plus.js/blob/
|
|
43
|
+
Defined in: [packages/mdast-plus/src/types.ts:111](https://github.com/isdk/mdast-plus.js/blob/fc889343b0a625d8edbf2036c3e25b676d1bf163/src/types.ts#L111)
|
|
44
44
|
|
|
45
45
|
The raw content from the source before conversion.
|