@openclaw/matrix 2026.8.2 → 2026.8.34
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/{account-selection-DA-jfx22.js → .setup/account-selection-DZMazUgX.mjs} +1 -1
- package/dist/{accounts-DR1c4xF_.js → .setup/accounts-BJ6ECCac.mjs} +3 -3
- package/dist/{approval-handler.runtime-xcVrZw9o.js → .setup/approval-handler.runtime-CcbBADVh.mjs} +11 -7
- package/dist/{approval-ids-hmvhDNBj.js → .setup/approval-ids-CU_nMQy9.mjs} +1 -1
- package/dist/{approval-reaction-auth-DziFGHSk.js → .setup/approval-reaction-auth-CpxhvOOT.mjs} +2 -2
- package/dist/{approval-reactions-1fwEhoK9.js → .setup/approval-reactions-BlnA05wW.mjs} +3 -3
- package/dist/{channel-D6-ajB_u.js → .setup/channel-kJSxq14c.mjs} +22 -18
- package/dist/{channel.runtime-BMA0dG2k.js → .setup/channel.runtime-BFXlZFP1.mjs} +6 -6
- package/dist/{channel.setup-OIEzCzSs.js → .setup/channel.setup-2A6HBRbA.mjs} +4 -4
- package/dist/{cli-B6HF7Hmn.js → .setup/cli-CyuDGiIr.mjs} +15 -15
- package/dist/{cli-metadata-Mtzu5-AY.js → .setup/cli-metadata-B_y2Z5Np.mjs} +1 -1
- package/dist/{client-B0yMDho1.js → .setup/client-CpHMD-C2.mjs} +3 -3
- package/dist/{client-DFsRJEgB.js → .setup/client-DvcYcTSy.mjs} +13 -13
- package/dist/{client-bootstrap-DjXCKEtg.js → .setup/client-bootstrap-Cb1tHsT4.mjs} +3 -3
- package/dist/{client-support-DLj4vDeu.js → .setup/client-support-Bn9Bk0-H.mjs} +1 -1
- package/dist/{config-update-BnX26jCO.js → .setup/config-update-B_4qZ5bV.mjs} +3 -3
- package/dist/{credentials-DJj2xs3q.js → .setup/credentials-B2roKThT.mjs} +3 -3
- package/dist/{credentials-read-mexhw-Ur.js → .setup/credentials-read-DaemdXHy.mjs} +4 -4
- package/dist/{credentials-write.runtime-DQt-kgJq.js → .setup/credentials-write.runtime-D83HEGcL.mjs} +1 -1
- package/dist/{crypto-runtime-QvlgyCkj.js → .setup/crypto-runtime-Ch4WOG1y.mjs} +5 -5
- package/dist/{device-health-B4-YXtJR.js → .setup/device-health-CWOuIirq.mjs} +1 -1
- package/dist/{direct-room-RinHjtqX.js → .setup/direct-room-CKyU8upP.mjs} +1 -1
- package/dist/{directory-live-Drh343TW.js → .setup/directory-live-DggLE-28.mjs} +4 -4
- package/dist/{doctor-CJE8wO6y.js → .setup/doctor-BLCvdOFo.mjs} +1 -1
- package/dist/{draft-stream-DhGHVdO4.js → .setup/draft-stream-DfUFwKfN.mjs} +1 -1
- package/dist/{encryption-guidance-BNcZNQZI.js → .setup/encryption-guidance-CvN_NQUJ.mjs} +2 -2
- package/dist/{http-client-DOmFvKvB.js → .setup/http-client-Bv6a2OfI.mjs} +1 -1
- package/dist/{idb-persistence-D4NGNQxt.js → .setup/idb-persistence-BiscLSq4.mjs} +3 -3
- package/dist/{inbound-dedupe-Ch33GU06.js → .setup/inbound-dedupe-BOsuMiaj.mjs} +1 -1
- package/dist/{logger-B_71hN6W.js → .setup/logger-B3tfcB-m.mjs} +1 -1
- package/dist/{logging-DRjvUOIh.js → .setup/logging-CkohOZwO.mjs} +2 -2
- package/dist/{messages-DlMQaC02.js → .setup/messages-C3v-jkaN.mjs} +4 -4
- package/dist/{monitor-U2LcVtHt.js → .setup/monitor-Cm0-IZPg.mjs} +26 -26
- package/dist/.setup/probe.runtime-ni46ImsO.mjs +2 -0
- package/dist/{profile-vmjsmhh4.js → .setup/profile-ClrB3IgR.mjs} +1 -1
- package/dist/{profile-update-CsyKA9jI.js → .setup/profile-update-B9Q6Ox2O.mjs} +4 -4
- package/dist/{reaction-events-lwNc5I1X.js → .setup/reaction-events-DLCiEuIa.mjs} +6 -6
- package/dist/{resolve-targets-D3Eakgzs.js → .setup/resolve-targets-Bke5jHKS.mjs} +3 -3
- package/dist/{resolver.runtime-DJQxR35r.js → .setup/resolver.runtime-BtrbC025.mjs} +1 -1
- package/dist/{room-info-DIU67XLP.js → .setup/room-info-B0VNxsF8.mjs} +4 -4
- package/dist/.setup/runtime-setter-api-DGMubGUq.mjs +3 -0
- package/dist/{sdk-Jl2CgAbJ.js → .setup/sdk-DoObvds0.mjs} +18 -15
- package/dist/{secret-contract-CufozuyJ.js → .setup/secret-contract-JlB6VmI3.mjs} +1 -1
- package/dist/.setup/secret-contract-api-B-iJoQEv.mjs +3 -0
- package/dist/{send-DfS5ciUL.js → .setup/send-SmBzUhD-.mjs} +7 -7
- package/dist/{setup-bootstrap-CWoIWudw.js → .setup/setup-bootstrap-CUKhebeX.mjs} +3 -3
- package/dist/{setup-core-CZM496H-.js → .setup/setup-core-BnqoLunq.mjs} +7 -7
- package/dist/.setup/setup-plugin-api-Dg95tydH.mjs +3 -0
- package/dist/{setup-surface-DSZtOsWK.js → .setup/setup-surface-sWwADrZ8.mjs} +12 -12
- package/dist/{startup-verification-1Ney1mmI.js → .setup/startup-verification-E46yu4fh.mjs} +2 -2
- package/dist/{storage-BVf4uucD.js → .setup/storage-B-nf2ReN.mjs} +4 -4
- package/dist/{subagent-hooks-DeICLbU5.js → .setup/subagent-hooks-jFgft_Mr.mjs} +1 -1
- package/dist/{sync-cache-state-d-A_OhbU.js → .setup/sync-cache-state-6Hjn1K-v.mjs} +2 -2
- package/dist/{thread-binding-api-CzkeLZCU.js → .setup/thread-binding-api-DRMC62cs.mjs} +1 -1
- package/dist/{thread-bindings-2HN2AyLu.js → .setup/thread-bindings-_WJ8RYWJ.mjs} +4 -4
- package/dist/{tool-actions.runtime-CFZZPG5g.js → .setup/tool-actions.runtime-Ds5Zt5m1.mjs} +13 -13
- package/dist/{verification-CD7k5vE9.js → .setup/verification-DOT16noD.mjs} +4 -3
- package/dist/api.js +8 -8
- package/dist/auth-presence.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +9 -9
- package/dist/helper-api.js +3 -3
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/runtime-api.js +6 -6
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +2 -2
- package/dist/setup-entry.js +4 -3
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/thread-binding-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +525 -484
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -1
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +7 -7
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +129 -121
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -1
- package/node_modules/markdown-it/dist/markdown-it.d.mts +42 -71
- package/node_modules/markdown-it/dist/markdown-it.mjs +129 -121
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -1
- package/node_modules/markdown-it/package.json +1 -2
- package/package.json +5 -5
- package/dist/probe.runtime-CNo-5_iz.js +0 -2
- /package/dist/{account-config-CRsKoMqJ.js → .setup/account-config-CRsKoMqJ.mjs} +0 -0
- /package/dist/{backup-health-Dm_YMVFT.js → .setup/backup-health-Dm_YMVFT.mjs} +0 -0
- /package/dist/{config-paths-CnREYb1Y.js → .setup/config-paths-CnREYb1Y.mjs} +0 -0
- /package/dist/{config-secret-input.runtime-CwsP3--c.js → .setup/config-secret-input.runtime-CwsP3--c.mjs} +0 -0
- /package/dist/{credentials-state-B3cuUFwZ.js → .setup/credentials-state-B3cuUFwZ.mjs} +0 -0
- /package/dist/{crypto-node.runtime-6Aj_ltHQ.js → .setup/crypto-node.runtime-6Aj_ltHQ.mjs} +0 -0
- /package/dist/{deps-mtxF2mHI.js → .setup/deps-mtxF2mHI.mjs} +0 -0
- /package/dist/{doctor-contract-HyWFZQVG.js → .setup/doctor-contract-HyWFZQVG.mjs} +0 -0
- /package/dist/{env-vars-dGqak9dN.js → .setup/env-vars-dGqak9dN.mjs} +0 -0
- /package/dist/{errors-DKVS3_DO.js → .setup/errors-DKVS3_DO.mjs} +0 -0
- /package/dist/{event-helpers-XRfAbOIh.js → .setup/event-helpers-XRfAbOIh.mjs} +0 -0
- /package/dist/{idb-persistence-lock-B3fZXyF_.js → .setup/idb-persistence-lock-B3fZXyF_.mjs} +0 -0
- /package/dist/{reaction-common-DkrQdBSZ.js → .setup/reaction-common-DkrQdBSZ.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{runtime-6S3DNFNv.js → .setup/runtime-6S3DNFNv.mjs} +0 -0
- /package/dist/{runtime-BefyhPWv.js → .setup/runtime-BefyhPWv.mjs} +0 -0
- /package/dist/{storage-paths-gUmSydsW.js → .setup/storage-paths-gUmSydsW.mjs} +0 -0
- /package/dist/{target-ids-Nwx7cMVE.js → .setup/target-ids-Nwx7cMVE.mjs} +0 -0
- /package/dist/{thread-bindings-shared-oNPiyMWY.js → .setup/thread-bindings-shared-oNPiyMWY.mjs} +0 -0
- /package/dist/{url-validation-GRHde6lq.js → .setup/url-validation-GRHde6lq.mjs} +0 -0
|
@@ -43,21 +43,43 @@ interface Delimiter {
|
|
|
43
43
|
* @category Main
|
|
44
44
|
*/
|
|
45
45
|
interface MarkdownItOptions {
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Enable HTML tags in source.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue `false` (`true` for `'commonmark'` preset only)
|
|
50
|
+
*/
|
|
47
51
|
html?: boolean;
|
|
48
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Use '/' to close single tags (`<br />`).
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue `false` (`true` for `'commonmark'` preset only)
|
|
56
|
+
*/
|
|
49
57
|
xhtmlOut?: boolean;
|
|
50
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Convert '\n' in paragraphs into `<br>`.
|
|
60
|
+
*
|
|
61
|
+
* @defaultValue `false`
|
|
62
|
+
*/
|
|
51
63
|
breaks?: boolean;
|
|
52
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* CSS language prefix for fenced blocks, used by external syntax highlighters.
|
|
66
|
+
*
|
|
67
|
+
* @defaultValue `'language-'`
|
|
68
|
+
*/
|
|
53
69
|
langPrefix?: string;
|
|
54
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Autoconvert URL-like text to links.
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue `false`
|
|
74
|
+
*/
|
|
55
75
|
linkify?: boolean;
|
|
56
76
|
/**
|
|
57
77
|
* Enable language-neutral replacements and quotes beautification.
|
|
58
78
|
*
|
|
59
79
|
* See the [replacement rules](https://github.com/markdown-it/markdown-it/blob/master/src/rules_core/replacements.ts)
|
|
60
80
|
* for the full list.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue `false`
|
|
61
83
|
*/
|
|
62
84
|
typographer?: boolean;
|
|
63
85
|
/**
|
|
@@ -66,6 +88,8 @@ interface MarkdownItOptions {
|
|
|
66
88
|
*
|
|
67
89
|
* For example, use `'«»„“'` for Russian, `'„“‚‘'` for German, and
|
|
68
90
|
* `['«\xA0', '\xA0»', '‹\xA0', '\xA0›']` for French (including nbsp).
|
|
91
|
+
*
|
|
92
|
+
* @defaultValue `'“”‘’'`
|
|
69
93
|
*/
|
|
70
94
|
quotes?: string | string[];
|
|
71
95
|
/**
|
|
@@ -114,9 +138,15 @@ interface MarkdownItOptions {
|
|
|
114
138
|
* }
|
|
115
139
|
* });
|
|
116
140
|
* ```
|
|
141
|
+
*
|
|
142
|
+
* @defaultValue `null`
|
|
117
143
|
*/
|
|
118
144
|
highlight?: ((str: string, lang: string, attrs: string) => string) | null;
|
|
119
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Internal protection against excessive recursion.
|
|
147
|
+
*
|
|
148
|
+
* @defaultValue `100`
|
|
149
|
+
*/
|
|
120
150
|
maxNesting?: number;
|
|
121
151
|
}
|
|
122
152
|
declare namespace utils_d_exports {
|
|
@@ -376,24 +406,23 @@ type RuleOptions = {
|
|
|
376
406
|
* {@link MarkdownIt.use}.
|
|
377
407
|
*/
|
|
378
408
|
declare class Ruler<Args extends unknown[], Result> {
|
|
409
|
+
/** @internal */
|
|
379
410
|
__rules__: Array<{
|
|
380
411
|
name: string;
|
|
381
412
|
enabled: boolean;
|
|
382
413
|
fn: (...args: Args) => Result;
|
|
383
414
|
alt: string[];
|
|
384
415
|
}>;
|
|
416
|
+
/** @internal */
|
|
385
417
|
__cache__: Record<string, Array<(...args: Args) => Result>> | null;
|
|
418
|
+
/** @internal */
|
|
386
419
|
__find__(name: string): number;
|
|
420
|
+
/** @internal */
|
|
387
421
|
__compile__(): void;
|
|
388
422
|
/**
|
|
389
423
|
* Replace rule by name with new function & options. Throws error if name not
|
|
390
424
|
* found.
|
|
391
425
|
*
|
|
392
|
-
* @param name Rule name to replace.
|
|
393
|
-
* @param fn New rule function.
|
|
394
|
-
* @param options Rule options. `alt` is an array with names of "alternate"
|
|
395
|
-
* chains.
|
|
396
|
-
*
|
|
397
426
|
* @example Replace existing typographer replacement rule with new one
|
|
398
427
|
* ```javascript
|
|
399
428
|
* import MarkdownIt from 'markdown-it'
|
|
@@ -409,12 +438,6 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
409
438
|
* Add new rule to chain before one with given name. See also
|
|
410
439
|
* {@link Ruler.after}, {@link Ruler.push}.
|
|
411
440
|
*
|
|
412
|
-
* @param beforeName New rule will be added before this one.
|
|
413
|
-
* @param ruleName Name of added rule.
|
|
414
|
-
* @param fn Rule function.
|
|
415
|
-
* @param options Rule options. `alt` is an array with names of "alternate"
|
|
416
|
-
* chains.
|
|
417
|
-
*
|
|
418
441
|
* @example
|
|
419
442
|
* ```javascript
|
|
420
443
|
* import MarkdownIt from 'markdown-it'
|
|
@@ -430,12 +453,6 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
430
453
|
* Add new rule to chain after one with given name. See also
|
|
431
454
|
* {@link Ruler.before}, {@link Ruler.push}.
|
|
432
455
|
*
|
|
433
|
-
* @param afterName New rule will be added after this one.
|
|
434
|
-
* @param ruleName Name of added rule.
|
|
435
|
-
* @param fn Rule function.
|
|
436
|
-
* @param options Rule options. `alt` is an array with names of "alternate"
|
|
437
|
-
* chains.
|
|
438
|
-
*
|
|
439
456
|
* @example
|
|
440
457
|
* ```javascript
|
|
441
458
|
* import MarkdownIt from 'markdown-it'
|
|
@@ -451,11 +468,6 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
451
468
|
* Push new rule to the end of chain. See also
|
|
452
469
|
* {@link Ruler.before}, {@link Ruler.after}.
|
|
453
470
|
*
|
|
454
|
-
* @param ruleName Name of added rule.
|
|
455
|
-
* @param fn Rule function.
|
|
456
|
-
* @param options Rule options. `alt` is an array with names of "alternate"
|
|
457
|
-
* chains.
|
|
458
|
-
*
|
|
459
471
|
* @example
|
|
460
472
|
* ```javascript
|
|
461
473
|
* import MarkdownIt from 'markdown-it'
|
|
@@ -473,9 +485,7 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
473
485
|
*
|
|
474
486
|
* See also {@link Ruler.disable}, {@link Ruler.enableOnly}.
|
|
475
487
|
*
|
|
476
|
-
*
|
|
477
|
-
* @param ignoreInvalid Set `true` to ignore errors when rule not found.
|
|
478
|
-
* @returns List of found rule names (if no exception happened).
|
|
488
|
+
* Returns list of found rule names (if no exception happened).
|
|
479
489
|
*/
|
|
480
490
|
enable(list: string | string[], ignoreInvalid?: boolean): string[];
|
|
481
491
|
/**
|
|
@@ -483,9 +493,6 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
483
493
|
* not found - throw Error. Errors can be disabled by second param.
|
|
484
494
|
*
|
|
485
495
|
* See also {@link Ruler.disable}, {@link Ruler.enable}.
|
|
486
|
-
*
|
|
487
|
-
* @param list List of rule names to enable (whitelist).
|
|
488
|
-
* @param ignoreInvalid Set `true` to ignore errors when rule not found.
|
|
489
496
|
*/
|
|
490
497
|
enableOnly(list: string | string[], ignoreInvalid?: boolean): void;
|
|
491
498
|
/**
|
|
@@ -494,9 +501,7 @@ declare class Ruler<Args extends unknown[], Result> {
|
|
|
494
501
|
*
|
|
495
502
|
* See also {@link Ruler.enable}, {@link Ruler.enableOnly}.
|
|
496
503
|
*
|
|
497
|
-
*
|
|
498
|
-
* @param ignoreInvalid Set `true` to ignore errors when rule not found.
|
|
499
|
-
* @returns List of found rule names (if no exception happened).
|
|
504
|
+
* Returns list of found rule names (if no exception happened).
|
|
500
505
|
*/
|
|
501
506
|
disable(list: string | string[], ignoreInvalid?: boolean): string[];
|
|
502
507
|
/**
|
|
@@ -553,37 +558,21 @@ declare class Renderer {
|
|
|
553
558
|
/**
|
|
554
559
|
* Default token renderer. Can be overriden by custom function
|
|
555
560
|
* in {@link Renderer.rules}.
|
|
556
|
-
*
|
|
557
|
-
* @param tokens List of tokens.
|
|
558
|
-
* @param idx Token index to render.
|
|
559
|
-
* @param options Params of parser instance.
|
|
560
561
|
*/
|
|
561
562
|
renderToken(tokens: Token[], idx: number, options: Required<MarkdownItOptions>): string;
|
|
562
563
|
/**
|
|
563
564
|
* The same as {@link Renderer.render}, but for single token of `inline` type.
|
|
564
|
-
*
|
|
565
|
-
* @param tokens List on block tokens to render.
|
|
566
|
-
* @param options Params of parser instance.
|
|
567
|
-
* @param env Additional data from parsed input (references, for example).
|
|
568
565
|
*/
|
|
569
566
|
renderInline(tokens: Token[], options: Required<MarkdownItOptions>, env: Env | undefined): string;
|
|
570
567
|
/**
|
|
571
568
|
* Special kludge for image `alt` attributes to conform CommonMark spec.
|
|
572
569
|
* Don't try to use it! Spec requires to show `alt` content with stripped markup,
|
|
573
570
|
* instead of simple escaping.
|
|
574
|
-
*
|
|
575
|
-
* @param tokens List on block tokens to render.
|
|
576
|
-
* @param options Params of parser instance.
|
|
577
|
-
* @param env Additional data from parsed input (references, for example).
|
|
578
571
|
*/
|
|
579
572
|
renderInlineAsText(tokens: Token[], options: Required<MarkdownItOptions>, env: Env | undefined): string;
|
|
580
573
|
/**
|
|
581
574
|
* Takes token stream and generates HTML. Probably, you will never need to call
|
|
582
575
|
* this method directly.
|
|
583
|
-
*
|
|
584
|
-
* @param tokens List on block tokens to render.
|
|
585
|
-
* @param options Params of parser instance.
|
|
586
|
-
* @param env Additional data from parsed input (references, for example).
|
|
587
576
|
*/
|
|
588
577
|
render(tokens: Token[], options: Required<MarkdownItOptions>, env?: Env): string;
|
|
589
578
|
}
|
|
@@ -873,9 +862,6 @@ declare class MarkdownIt {
|
|
|
873
862
|
* containing rules with given names. If rule not found, and `ignoreInvalid`
|
|
874
863
|
* not set - throws exception.
|
|
875
864
|
*
|
|
876
|
-
* @param list Rule name or list of rule names to enable.
|
|
877
|
-
* @param ignoreInvalid Set `true` to ignore errors when rule not found.
|
|
878
|
-
*
|
|
879
865
|
* @example
|
|
880
866
|
* ```javascript
|
|
881
867
|
* import MarkdownIt from 'markdown-it'
|
|
@@ -888,9 +874,6 @@ declare class MarkdownIt {
|
|
|
888
874
|
enable(list: string | string[], ignoreInvalid?: boolean): this;
|
|
889
875
|
/**
|
|
890
876
|
* The same as {@link MarkdownIt.enable}, but turn specified rules off.
|
|
891
|
-
*
|
|
892
|
-
* @param list Rule name or list of rule names to disable.
|
|
893
|
-
* @param ignoreInvalid Set `true` to ignore errors when rule not found.
|
|
894
877
|
*/
|
|
895
878
|
disable(list: string | string[], ignoreInvalid?: boolean): this;
|
|
896
879
|
/**
|
|
@@ -919,9 +902,6 @@ declare class MarkdownIt {
|
|
|
919
902
|
* metadata like reference info, needed for the renderer. It also can be used to
|
|
920
903
|
* inject data in specific cases. Usually, you will be ok to pass `{}`,
|
|
921
904
|
* and then pass updated object to renderer.
|
|
922
|
-
*
|
|
923
|
-
* @param src Source string.
|
|
924
|
-
* @param env Environment sandbox.
|
|
925
905
|
*/
|
|
926
906
|
parse(src: string, env: Env): Token[];
|
|
927
907
|
/**
|
|
@@ -930,26 +910,17 @@ declare class MarkdownIt {
|
|
|
930
910
|
* `env` can be used to inject additional metadata (`{}` by default).
|
|
931
911
|
* But you will not need it with high probability. See also comment
|
|
932
912
|
* in {@link MarkdownIt.parse}.
|
|
933
|
-
*
|
|
934
|
-
* @param src Source string.
|
|
935
|
-
* @param env Environment sandbox.
|
|
936
913
|
*/
|
|
937
914
|
render(src: string, env?: Env): string;
|
|
938
915
|
/**
|
|
939
916
|
* The same as {@link MarkdownIt.parse} but skip all block rules. It returns
|
|
940
917
|
* the block tokens list with the single `inline` element, containing parsed
|
|
941
918
|
* inline tokens in `children` property. Also updates `env` object.
|
|
942
|
-
*
|
|
943
|
-
* @param src Source string.
|
|
944
|
-
* @param env Environment sandbox.
|
|
945
919
|
*/
|
|
946
920
|
parseInline(src: string, env: Env): Token[];
|
|
947
921
|
/**
|
|
948
922
|
* Similar to {@link MarkdownIt.render} but for single paragraph content.
|
|
949
923
|
* Result will NOT be wrapped into `<p>` tags.
|
|
950
|
-
*
|
|
951
|
-
* @param src Source string.
|
|
952
|
-
* @param env Environment sandbox.
|
|
953
924
|
*/
|
|
954
925
|
renderInline(src: string, env?: Env): string;
|
|
955
926
|
static Token: typeof Token;
|