@openclaw/feishu 2026.7.1 → 2026.7.2-beta.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.
- package/dist/{accounts-Bs5uJ4h0.js → accounts-BDoGHJDk.js} +29 -54
- package/dist/api.js +35 -25
- package/dist/{channel-DRQRQQQ3.js → channel-DdPQ2HGh.js} +578 -369
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-pvr-Y5ji.js → channel.runtime-DJ_B-bpG.js} +272 -107
- package/dist/{client-B7EAV_Ss.js → client-BUC-R2Wi.js} +4 -13
- package/dist/contract-api.js +1 -1
- package/dist/{conversation-id-CdLdoot3.js → conversation-id-BeJL-wq7.js} +3 -0
- package/dist/doctor-contract-DXH5hux1.js +97 -0
- package/dist/doctor-contract-api.js +2 -0
- package/dist/{drive-D0lIhxqZ.js → drive-Bpe8ONK_.js} +181 -33
- package/dist/{monitor-CsbheK9J.js → monitor-M3iYtoh4.js} +3 -3
- package/dist/{monitor.account-Dr7do33p.js → monitor.account-F99J862T.js} +474 -493
- package/dist/monitor.startup-DpZzunQn.js +43 -0
- package/dist/{probe-Dxyo9zlw.js → probe-CAloGqgG.js} +3 -6
- package/dist/{secret-contract-DLaBl9m4.js → secret-contract-DnlMcrn5.js} +14 -69
- package/dist/secret-contract-api.js +1 -1
- package/dist/{send-Be2GMA6Z.js → send-CpnLYueT.js} +12 -35
- package/dist/send-result-CPS7AozW.js +766 -0
- package/dist/{session-conversation-BYuoVJwl.js → session-conversation-BksWrfzm.js} +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +0 -5
- package/dist/{subagent-hooks-B2iWPYJ1.js → subagent-hooks-BKTOxB-T.js} +9 -5
- package/dist/subagent-hooks-api.js +1 -1
- package/node_modules/@types/debug/LICENSE +21 -0
- package/node_modules/@types/debug/README.md +69 -0
- package/node_modules/@types/debug/index.d.ts +50 -0
- package/node_modules/@types/debug/package.json +58 -0
- package/node_modules/@types/mdast/LICENSE +21 -0
- package/node_modules/@types/mdast/README.md +15 -0
- package/node_modules/@types/mdast/index.d.ts +1123 -0
- package/node_modules/@types/mdast/package.json +47 -0
- package/node_modules/@types/ms/LICENSE +21 -0
- package/node_modules/@types/ms/README.md +82 -0
- package/node_modules/@types/ms/index.d.ts +63 -0
- package/node_modules/@types/ms/package.json +26 -0
- package/node_modules/@types/unist/LICENSE +21 -0
- package/node_modules/@types/unist/README.md +15 -0
- package/node_modules/@types/unist/index.d.ts +119 -0
- package/node_modules/@types/unist/package.json +60 -0
- package/node_modules/character-entities/index.d.ts +6 -0
- package/node_modules/character-entities/index.js +2132 -0
- package/node_modules/character-entities/license +22 -0
- package/node_modules/character-entities/package.json +78 -0
- package/node_modules/character-entities/readme.md +152 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decode-named-character-reference/index.d.ts +13 -0
- package/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
- package/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
- package/node_modules/decode-named-character-reference/index.dom.js +32 -0
- package/node_modules/decode-named-character-reference/index.js +19 -0
- package/node_modules/decode-named-character-reference/license +22 -0
- package/node_modules/decode-named-character-reference/package.json +90 -0
- package/node_modules/decode-named-character-reference/readme.md +136 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/index.d.ts +1 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.d.ts +1 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +57 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/devlop/lib/default.js +9 -0
- package/node_modules/devlop/lib/development.d.ts +84 -0
- package/node_modules/devlop/lib/development.js +238 -0
- package/node_modules/devlop/license +22 -0
- package/node_modules/devlop/package.json +80 -0
- package/node_modules/devlop/readme.md +360 -0
- package/node_modules/longest-streak/index.d.ts +11 -0
- package/node_modules/longest-streak/index.js +36 -0
- package/node_modules/longest-streak/license +22 -0
- package/node_modules/longest-streak/package.json +73 -0
- package/node_modules/longest-streak/readme.md +150 -0
- package/node_modules/markdown-table/index.d.ts +171 -0
- package/node_modules/markdown-table/index.d.ts.map +1 -0
- package/node_modules/markdown-table/index.js +393 -0
- package/node_modules/markdown-table/license +22 -0
- package/node_modules/markdown-table/package.json +77 -0
- package/node_modules/markdown-table/readme.md +344 -0
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
- package/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +1348 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +295 -0
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
- package/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
- package/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
- package/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +295 -0
- package/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
- package/node_modules/mdast-util-from-markdown/license +22 -0
- package/node_modules/mdast-util-from-markdown/package.json +99 -0
- package/node_modules/mdast-util-from-markdown/readme.md +535 -0
- package/node_modules/mdast-util-gfm-table/index.d.ts +54 -0
- package/node_modules/mdast-util-gfm-table/index.js +2 -0
- package/node_modules/mdast-util-gfm-table/lib/index.d.ts +51 -0
- package/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
- package/node_modules/mdast-util-gfm-table/license +22 -0
- package/node_modules/mdast-util-gfm-table/package.json +101 -0
- package/node_modules/mdast-util-gfm-table/readme.md +605 -0
- package/node_modules/mdast-util-phrasing/index.d.ts +1 -0
- package/node_modules/mdast-util-phrasing/index.js +1 -0
- package/node_modules/mdast-util-phrasing/lib/index.d.ts +3 -0
- package/node_modules/mdast-util-phrasing/lib/index.js +45 -0
- package/node_modules/mdast-util-phrasing/license +23 -0
- package/node_modules/mdast-util-phrasing/package.json +78 -0
- package/node_modules/mdast-util-phrasing/readme.md +200 -0
- package/node_modules/mdast-util-to-markdown/index.d.ts +16 -0
- package/node_modules/mdast-util-to-markdown/index.js +3 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts +9 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +17 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +24 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +15 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +21 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +21 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +42 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +19 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +21 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +24 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +17 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +24 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +17 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/index.d.ts +14 -0
- package/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
- package/node_modules/mdast-util-to-markdown/lib/join.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
- package/node_modules/mdast-util-to-markdown/lib/types.d.ts +965 -0
- package/node_modules/mdast-util-to-markdown/lib/types.js +2 -0
- package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +4 -0
- package/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
- package/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +8 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
- package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +19 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +19 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +7 -0
- package/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +10 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +33 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +13 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +9 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +9 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
- package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +12 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +29 -0
- package/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
- package/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +2 -0
- package/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +1 -0
- package/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/node_modules/mdast-util-to-markdown/license +22 -0
- package/node_modules/mdast-util-to-markdown/package.json +132 -0
- package/node_modules/mdast-util-to-markdown/readme.md +750 -0
- package/node_modules/mdast-util-to-string/index.d.ts +2 -0
- package/node_modules/mdast-util-to-string/index.js +5 -0
- package/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
- package/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/node_modules/mdast-util-to-string/license +22 -0
- package/node_modules/mdast-util-to-string/package.json +78 -0
- package/node_modules/mdast-util-to-string/readme.md +218 -0
- package/node_modules/micromark/dev/index.d.ts +82 -0
- package/node_modules/micromark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark/dev/index.js +68 -0
- package/node_modules/micromark/dev/lib/compile.d.ts +16 -0
- package/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/compile.js +1152 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/constructs.js +101 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/create-tokenizer.js +717 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/content.js +99 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/document.js +445 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/initialize/text.js +244 -0
- package/node_modules/micromark/dev/lib/parse.d.ts +10 -0
- package/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/parse.js +58 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/postprocess.js +19 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/dev/lib/preprocess.js +141 -0
- package/node_modules/micromark/dev/stream.d.ts +35 -0
- package/node_modules/micromark/dev/stream.d.ts.map +1 -0
- package/node_modules/micromark/dev/stream.js +270 -0
- package/node_modules/micromark/index.d.ts +82 -0
- package/node_modules/micromark/index.d.ts.map +1 -0
- package/node_modules/micromark/index.js +60 -0
- package/node_modules/micromark/lib/compile.d.ts +16 -0
- package/node_modules/micromark/lib/compile.d.ts.map +1 -0
- package/node_modules/micromark/lib/compile.js +1060 -0
- package/node_modules/micromark/lib/constructs.d.ts +73 -0
- package/node_modules/micromark/lib/constructs.d.ts.map +1 -0
- package/node_modules/micromark/lib/constructs.js +85 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
- package/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
- package/node_modules/micromark/lib/create-tokenizer.js +611 -0
- package/node_modules/micromark/lib/initialize/content.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/content.js +79 -0
- package/node_modules/micromark/lib/initialize/document.d.ts +10 -0
- package/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/document.js +362 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
- package/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/node_modules/micromark/lib/initialize/text.d.ts +8 -0
- package/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
- package/node_modules/micromark/lib/initialize/text.js +212 -0
- package/node_modules/micromark/lib/parse.d.ts +10 -0
- package/node_modules/micromark/lib/parse.d.ts.map +1 -0
- package/node_modules/micromark/lib/parse.js +56 -0
- package/node_modules/micromark/lib/postprocess.d.ts +9 -0
- package/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/postprocess.js +18 -0
- package/node_modules/micromark/lib/preprocess.d.ts +13 -0
- package/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
- package/node_modules/micromark/lib/preprocess.js +115 -0
- package/node_modules/micromark/license +22 -0
- package/node_modules/micromark/package.json +100 -0
- package/node_modules/micromark/readme.md +488 -0
- package/node_modules/micromark/stream.d.ts +35 -0
- package/node_modules/micromark/stream.d.ts.map +1 -0
- package/node_modules/micromark/stream.js +256 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/index.js +22 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/attention.js +300 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +514 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +202 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +233 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +989 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-end.js +656 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +110 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +62 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +210 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
- package/node_modules/micromark-core-commonmark/index.d.ts +23 -0
- package/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/index.js +22 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
- package/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
- package/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/node_modules/micromark-core-commonmark/license +22 -0
- package/node_modules/micromark-core-commonmark/package.json +74 -0
- package/node_modules/micromark-core-commonmark/readme.md +171 -0
- package/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
- package/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +38 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +212 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.js +148 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +941 -0
- package/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
- package/node_modules/micromark-extension-gfm-table/index.js +2 -0
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +38 -0
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
- package/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
- package/node_modules/micromark-extension-gfm-table/license +22 -0
- package/node_modules/micromark-extension-gfm-table/package.json +128 -0
- package/node_modules/micromark-extension-gfm-table/readme.md +515 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/dev/index.js +255 -0
- package/node_modules/micromark-factory-destination/index.d.ts +42 -0
- package/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-destination/index.js +206 -0
- package/node_modules/micromark-factory-destination/license +22 -0
- package/node_modules/micromark-factory-destination/package.json +57 -0
- package/node_modules/micromark-factory-destination/readme.md +234 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/dev/index.js +172 -0
- package/node_modules/micromark-factory-label/index.d.ts +37 -0
- package/node_modules/micromark-factory-label/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-label/index.js +148 -0
- package/node_modules/micromark-factory-label/license +22 -0
- package/node_modules/micromark-factory-label/package.json +60 -0
- package/node_modules/micromark-factory-label/readme.md +224 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts +37 -0
- package/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/dev/index.js +67 -0
- package/node_modules/micromark-factory-space/index.d.ts +37 -0
- package/node_modules/micromark-factory-space/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-space/index.js +64 -0
- package/node_modules/micromark-factory-space/license +22 -0
- package/node_modules/micromark-factory-space/package.json +55 -0
- package/node_modules/micromark-factory-space/readme.md +225 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/dev/index.js +169 -0
- package/node_modules/micromark-factory-title/index.d.ts +36 -0
- package/node_modules/micromark-factory-title/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-title/index.js +158 -0
- package/node_modules/micromark-factory-title/license +22 -0
- package/node_modules/micromark-factory-title/package.json +58 -0
- package/node_modules/micromark-factory-title/readme.md +229 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
- package/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
- package/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/node_modules/micromark-factory-whitespace/license +22 -0
- package/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/node_modules/micromark-factory-whitespace/readme.md +205 -0
- package/node_modules/micromark-util-character/dev/index.d.ts +195 -0
- package/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/dev/index.js +252 -0
- package/node_modules/micromark-util-character/index.d.ts +195 -0
- package/node_modules/micromark-util-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-character/index.js +246 -0
- package/node_modules/micromark-util-character/license +22 -0
- package/node_modules/micromark-util-character/package.json +57 -0
- package/node_modules/micromark-util-character/readme.md +446 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/dev/index.js +89 -0
- package/node_modules/micromark-util-chunked/index.d.ts +41 -0
- package/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
- package/node_modules/micromark-util-chunked/index.js +81 -0
- package/node_modules/micromark-util-chunked/license +22 -0
- package/node_modules/micromark-util-chunked/package.json +57 -0
- package/node_modules/micromark-util-chunked/readme.md +219 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/dev/index.js +38 -0
- package/node_modules/micromark-util-classify-character/index.d.ts +18 -0
- package/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
- package/node_modules/micromark-util-classify-character/index.js +27 -0
- package/node_modules/micromark-util-classify-character/license +22 -0
- package/node_modules/micromark-util-classify-character/package.json +59 -0
- package/node_modules/micromark-util-classify-character/readme.md +205 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
- package/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
- package/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/node_modules/micromark-util-combine-extensions/license +22 -0
- package/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/node_modules/micromark-util-combine-extensions/readme.md +201 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/dev/index.js +53 -0
- package/node_modules/micromark-util-decode-string/index.d.ts +14 -0
- package/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
- package/node_modules/micromark-util-decode-string/index.js +45 -0
- package/node_modules/micromark-util-decode-string/license +22 -0
- package/node_modules/micromark-util-decode-string/package.json +63 -0
- package/node_modules/micromark-util-decode-string/readme.md +179 -0
- package/node_modules/micromark-util-encode/index.d.ts +14 -0
- package/node_modules/micromark-util-encode/index.d.ts.map +1 -0
- package/node_modules/micromark-util-encode/index.js +33 -0
- package/node_modules/micromark-util-encode/license +22 -0
- package/node_modules/micromark-util-encode/package.json +47 -0
- package/node_modules/micromark-util-encode/readme.md +176 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
- package/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
- package/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/node_modules/micromark-util-html-tag-name/license +22 -0
- package/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/node_modules/micromark-util-html-tag-name/readme.md +193 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
- package/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
- package/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/node_modules/micromark-util-normalize-identifier/license +22 -0
- package/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
- package/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
- package/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/node_modules/micromark-util-resolve-all/license +22 -0
- package/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/node_modules/micromark-util-resolve-all/readme.md +238 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
- package/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
- package/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
- package/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
- package/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/node_modules/micromark-util-subtokenize/license +22 -0
- package/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/node_modules/micromark-util-subtokenize/readme.md +181 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
- package/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
- package/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
- package/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
- package/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
- package/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
- package/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/node_modules/micromark-util-symbol/license +22 -0
- package/node_modules/micromark-util-symbol/package.json +43 -0
- package/node_modules/micromark-util-symbol/readme.md +168 -0
- package/node_modules/micromark-util-types/index.d.ts +1312 -0
- package/node_modules/micromark-util-types/index.js +2 -0
- package/node_modules/micromark-util-types/license +22 -0
- package/node_modules/micromark-util-types/package.json +71 -0
- package/node_modules/micromark-util-types/readme.md +151 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/unist-util-is/index.d.ts +5 -0
- package/node_modules/unist-util-is/index.d.ts.map +1 -0
- package/node_modules/unist-util-is/index.js +7 -0
- package/node_modules/unist-util-is/lib/index.d.ts +111 -0
- package/node_modules/unist-util-is/lib/index.d.ts.map +1 -0
- package/node_modules/unist-util-is/lib/index.js +296 -0
- package/node_modules/unist-util-is/license +22 -0
- package/node_modules/unist-util-is/package.json +103 -0
- package/node_modules/unist-util-is/readme.md +351 -0
- package/node_modules/unist-util-stringify-position/index.d.ts +1 -0
- package/node_modules/unist-util-stringify-position/index.js +1 -0
- package/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
- package/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/node_modules/unist-util-stringify-position/license +22 -0
- package/node_modules/unist-util-stringify-position/package.json +80 -0
- package/node_modules/unist-util-stringify-position/readme.md +206 -0
- package/node_modules/unist-util-visit/index.d.ts +9 -0
- package/node_modules/unist-util-visit/index.js +2 -0
- package/node_modules/unist-util-visit/lib/index.d.ts +195 -0
- package/node_modules/unist-util-visit/lib/index.d.ts.map +1 -0
- package/node_modules/unist-util-visit/lib/index.js +312 -0
- package/node_modules/unist-util-visit/license +22 -0
- package/node_modules/unist-util-visit/package.json +108 -0
- package/node_modules/unist-util-visit/readme.md +313 -0
- package/node_modules/unist-util-visit-parents/index.d.ts +14 -0
- package/node_modules/unist-util-visit-parents/index.js +2 -0
- package/node_modules/unist-util-visit-parents/lib/color.d.ts +6 -0
- package/node_modules/unist-util-visit-parents/lib/color.d.ts.map +1 -0
- package/node_modules/unist-util-visit-parents/lib/color.js +7 -0
- package/node_modules/unist-util-visit-parents/lib/color.node.d.ts +6 -0
- package/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +1 -0
- package/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
- package/node_modules/unist-util-visit-parents/lib/index.d.ts +219 -0
- package/node_modules/unist-util-visit-parents/lib/index.d.ts.map +1 -0
- package/node_modules/unist-util-visit-parents/lib/index.js +399 -0
- package/node_modules/unist-util-visit-parents/license +22 -0
- package/node_modules/unist-util-visit-parents/package.json +106 -0
- package/node_modules/unist-util-visit-parents/readme.md +388 -0
- package/node_modules/zwitch/index.d.ts +67 -0
- package/node_modules/zwitch/index.js +118 -0
- package/node_modules/zwitch/license +22 -0
- package/node_modules/zwitch/package.json +72 -0
- package/node_modules/zwitch/readme.md +226 -0
- package/npm-shrinkwrap.json +737 -3
- package/openclaw.plugin.json +154 -81
- package/package.json +10 -7
- package/skills/feishu-drive/SKILL.md +5 -2
- package/dist/legacy-state-migrations-api.js +0 -73
- package/dist/monitor.state-DAHbcR2N.js +0 -173
- package/dist/send-result-BMQw-YhV.js +0 -287
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
# mdast-util-from-markdown
|
|
2
|
+
|
|
3
|
+
[![Build][badge-build-image]][badge-build-url]
|
|
4
|
+
[![Coverage][badge-coverage-image]][badge-coverage-url]
|
|
5
|
+
[![Downloads][badge-downloads-image]][badge-downloads-url]
|
|
6
|
+
[![Size][badge-size-image]][badge-size-url]
|
|
7
|
+
|
|
8
|
+
**[mdast][github-mdast]** utility that turns markdown into a syntax tree.
|
|
9
|
+
|
|
10
|
+
## Contents
|
|
11
|
+
|
|
12
|
+
* [What is this?](#what-is-this)
|
|
13
|
+
* [When should I use this?](#when-should-i-use-this)
|
|
14
|
+
* [Install](#install)
|
|
15
|
+
* [Use](#use)
|
|
16
|
+
* [API](#api)
|
|
17
|
+
* [`fromMarkdown(value[, encoding][, options])`](#frommarkdownvalue-encoding-options)
|
|
18
|
+
* [`CompileContext`](#compilecontext)
|
|
19
|
+
* [`CompileData`](#compiledata)
|
|
20
|
+
* [`Encoding`](#encoding)
|
|
21
|
+
* [`Extension`](#extension)
|
|
22
|
+
* [`Handle`](#handle)
|
|
23
|
+
* [`OnEnterError`](#onentererror)
|
|
24
|
+
* [`OnExitError`](#onexiterror)
|
|
25
|
+
* [`Options`](#options)
|
|
26
|
+
* [`Token`](#token)
|
|
27
|
+
* [`Transform`](#transform)
|
|
28
|
+
* [`Value`](#value)
|
|
29
|
+
* [List of extensions](#list-of-extensions)
|
|
30
|
+
* [Syntax](#syntax)
|
|
31
|
+
* [Syntax tree](#syntax-tree)
|
|
32
|
+
* [Types](#types)
|
|
33
|
+
* [Compatibility](#compatibility)
|
|
34
|
+
* [Security](#security)
|
|
35
|
+
* [Related](#related)
|
|
36
|
+
* [Contribute](#contribute)
|
|
37
|
+
* [License](#license)
|
|
38
|
+
|
|
39
|
+
## What is this?
|
|
40
|
+
|
|
41
|
+
This package is a utility that takes markdown input and turns it into an
|
|
42
|
+
[mdast][github-mdast] syntax tree.
|
|
43
|
+
|
|
44
|
+
This utility uses [`micromark`][github-micromark],
|
|
45
|
+
which turns markdown into tokens,
|
|
46
|
+
and then turns those tokens into nodes.
|
|
47
|
+
This package is used inside [`remark-parse`][github-remark-parse],
|
|
48
|
+
which focusses on
|
|
49
|
+
making it easier to transform content by abstracting these internals away.
|
|
50
|
+
|
|
51
|
+
## When should I use this?
|
|
52
|
+
|
|
53
|
+
If you want to handle syntax trees manually, use this.
|
|
54
|
+
When you *just* want to turn markdown into HTML,
|
|
55
|
+
use [`micromark`][github-micromark] instead.
|
|
56
|
+
For an easier time processing content,
|
|
57
|
+
use the **[remark][github-remark]** ecosystem instead.
|
|
58
|
+
|
|
59
|
+
You can combine this package with other packages to add syntax extensions to
|
|
60
|
+
markdown.
|
|
61
|
+
Notable examples that deeply integrate with this package are
|
|
62
|
+
[`mdast-util-mdx`][github-mdast-util-mdx],
|
|
63
|
+
[`mdast-util-gfm`][github-mdast-util-gfm],
|
|
64
|
+
[`mdast-util-frontmatter`][github-mdast-util-frontmatter],
|
|
65
|
+
[`mdast-util-math`][github-mdast-util-math], and
|
|
66
|
+
[`mdast-util-directive`][github-mdast-util-directive].
|
|
67
|
+
|
|
68
|
+
## Install
|
|
69
|
+
|
|
70
|
+
This package is [ESM only][github-gist-esm].
|
|
71
|
+
In Node.js (version 16+), install with [npm][npmjs-install]:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npm install mdast-util-from-markdown
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
In Deno with [`esm.sh`][esmsh]:
|
|
78
|
+
|
|
79
|
+
```js
|
|
80
|
+
import {fromMarkdown} from 'https://esm.sh/mdast-util-from-markdown@2'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
In browsers with [`esm.sh`][esmsh]:
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<script type="module">
|
|
87
|
+
import {fromMarkdown} from 'https://esm.sh/mdast-util-from-markdown@2?bundle'
|
|
88
|
+
</script>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Use
|
|
92
|
+
|
|
93
|
+
Say we have the following markdown file `example.md`:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
## Hello, *World*!
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
…and our module `example.js` looks as follows:
|
|
100
|
+
|
|
101
|
+
```js
|
|
102
|
+
import fs from 'node:fs/promises'
|
|
103
|
+
import {fromMarkdown} from 'mdast-util-from-markdown'
|
|
104
|
+
|
|
105
|
+
const doc = await fs.readFile('example.md')
|
|
106
|
+
const tree = fromMarkdown(doc)
|
|
107
|
+
|
|
108
|
+
console.log(tree)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
…now running `node example.js` yields (positional info removed for brevity):
|
|
112
|
+
|
|
113
|
+
```js
|
|
114
|
+
{
|
|
115
|
+
type: 'root',
|
|
116
|
+
children: [
|
|
117
|
+
{
|
|
118
|
+
type: 'heading',
|
|
119
|
+
depth: 2,
|
|
120
|
+
children: [
|
|
121
|
+
{type: 'text', value: 'Hello, '},
|
|
122
|
+
{type: 'emphasis', children: [{type: 'text', value: 'World'}]},
|
|
123
|
+
{type: 'text', value: '!'}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## API
|
|
131
|
+
|
|
132
|
+
This package exports the identifier [`fromMarkdown`][api-from-markdown].
|
|
133
|
+
There is no default export.
|
|
134
|
+
|
|
135
|
+
The export map supports the [`development` condition][node-packages-conditions].
|
|
136
|
+
Run `node --conditions development example.js` to get instrumented dev code.
|
|
137
|
+
Without this condition, production code is loaded.
|
|
138
|
+
|
|
139
|
+
### `fromMarkdown(value[, encoding][, options])`
|
|
140
|
+
|
|
141
|
+
Turn markdown into a syntax tree.
|
|
142
|
+
|
|
143
|
+
###### Overloads
|
|
144
|
+
|
|
145
|
+
* `(value: Value, encoding: Encoding, options?: Options) => Root`
|
|
146
|
+
* `(value: Value, options?: Options) => Root`
|
|
147
|
+
|
|
148
|
+
###### Parameters
|
|
149
|
+
|
|
150
|
+
* `value` ([`Value`][api-value])
|
|
151
|
+
— markdown to parse
|
|
152
|
+
* `encoding` ([`Encoding`][api-encoding], default: `'utf8'`)
|
|
153
|
+
— [character encoding][node-util-encoding] for when `value` is
|
|
154
|
+
[`Uint8Array`][mozilla-uint8-array]
|
|
155
|
+
* `options` ([`Options`][api-options], optional)
|
|
156
|
+
— configuration
|
|
157
|
+
|
|
158
|
+
###### Returns
|
|
159
|
+
|
|
160
|
+
mdast tree ([`Root`][github-mdast-root]).
|
|
161
|
+
|
|
162
|
+
### `CompileContext`
|
|
163
|
+
|
|
164
|
+
mdast compiler context (TypeScript type).
|
|
165
|
+
|
|
166
|
+
###### Fields
|
|
167
|
+
|
|
168
|
+
* `stack` ([`Array<Node>`][github-mdast-nodes])
|
|
169
|
+
— stack of nodes
|
|
170
|
+
* `tokenStack` (`Array<[Token, OnEnterError | undefined]>`)
|
|
171
|
+
— stack of tokens
|
|
172
|
+
* `data` ([`CompileData`][api-compile-data])
|
|
173
|
+
— info passed around; key/value store
|
|
174
|
+
* `buffer` (`() => undefined`)
|
|
175
|
+
— capture some of the output data
|
|
176
|
+
* `resume` (`() => string`)
|
|
177
|
+
— stop capturing and access the output data
|
|
178
|
+
* `enter` (`(node: Node, token: Token, onError?: OnEnterError) => undefined`)
|
|
179
|
+
— enter a node
|
|
180
|
+
* `exit` (`(token: Token, onError?: OnExitError) => undefined`)
|
|
181
|
+
— exit a node
|
|
182
|
+
* `sliceSerialize` (`(token: Token, expandTabs?: boolean) => string`)
|
|
183
|
+
— get the string value of a token
|
|
184
|
+
* `config` (`Required<Extension>`)
|
|
185
|
+
— configuration
|
|
186
|
+
|
|
187
|
+
### `CompileData`
|
|
188
|
+
|
|
189
|
+
Interface of tracked data (TypeScript type).
|
|
190
|
+
|
|
191
|
+
###### Type
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
interface CompileData { /* see code */ }
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
When working on extensions that use more data, extend the corresponding
|
|
198
|
+
interface to register their types:
|
|
199
|
+
|
|
200
|
+
```ts
|
|
201
|
+
declare module 'mdast-util-from-markdown' {
|
|
202
|
+
interface CompileData {
|
|
203
|
+
// Register a new field.
|
|
204
|
+
mathFlowInside?: boolean | undefined
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### `Encoding`
|
|
210
|
+
|
|
211
|
+
Encodings supported by the [`Uint8Array`][mozilla-uint8-array] class
|
|
212
|
+
(TypeScript type).
|
|
213
|
+
|
|
214
|
+
See [`micromark`][github-micromark-api] for more info.
|
|
215
|
+
|
|
216
|
+
###### Type
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
type Encoding = 'utf8' | /* … */
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### `Extension`
|
|
223
|
+
|
|
224
|
+
Change how markdown tokens from micromark are turned into mdast (TypeScript
|
|
225
|
+
type).
|
|
226
|
+
|
|
227
|
+
###### Properties
|
|
228
|
+
|
|
229
|
+
* `canContainEols` (`Array<string>`, optional)
|
|
230
|
+
— token types where line endings are used
|
|
231
|
+
* `enter` ([`Record<string, Handle>`][api-handle], optional)
|
|
232
|
+
— opening handles
|
|
233
|
+
* `exit` ([`Record<string, Handle>`][api-handle], optional)
|
|
234
|
+
— closing handles
|
|
235
|
+
* `transforms` ([`Array<Transform>`][api-transform], optional)
|
|
236
|
+
— tree transforms
|
|
237
|
+
|
|
238
|
+
### `Handle`
|
|
239
|
+
|
|
240
|
+
Handle a token (TypeScript type).
|
|
241
|
+
|
|
242
|
+
###### Parameters
|
|
243
|
+
|
|
244
|
+
* `this` ([`CompileContext`][api-compile-context])
|
|
245
|
+
— context
|
|
246
|
+
* `token` ([`Token`][api-token])
|
|
247
|
+
— current token
|
|
248
|
+
|
|
249
|
+
###### Returns
|
|
250
|
+
|
|
251
|
+
Nothing (`undefined`).
|
|
252
|
+
|
|
253
|
+
### `OnEnterError`
|
|
254
|
+
|
|
255
|
+
Handle the case where the `right` token is open, but it is closed (by the
|
|
256
|
+
`left` token) or because we reached the end of the document (TypeScript type).
|
|
257
|
+
|
|
258
|
+
###### Parameters
|
|
259
|
+
|
|
260
|
+
* `this` ([`CompileContext`][api-compile-context])
|
|
261
|
+
— context
|
|
262
|
+
* `left` ([`Token`][api-token] or `undefined`)
|
|
263
|
+
— left token
|
|
264
|
+
* `right` ([`Token`][api-token])
|
|
265
|
+
— right token
|
|
266
|
+
|
|
267
|
+
###### Returns
|
|
268
|
+
|
|
269
|
+
Nothing (`undefined`).
|
|
270
|
+
|
|
271
|
+
### `OnExitError`
|
|
272
|
+
|
|
273
|
+
Handle the case where the `right` token is open but it is closed by
|
|
274
|
+
exiting the `left` token (TypeScript type).
|
|
275
|
+
|
|
276
|
+
###### Parameters
|
|
277
|
+
|
|
278
|
+
* `this` ([`CompileContext`][api-compile-context])
|
|
279
|
+
— context
|
|
280
|
+
* `left` ([`Token`][api-token])
|
|
281
|
+
— left token
|
|
282
|
+
* `right` ([`Token`][api-token])
|
|
283
|
+
— right token
|
|
284
|
+
|
|
285
|
+
###### Returns
|
|
286
|
+
|
|
287
|
+
Nothing (`undefined`).
|
|
288
|
+
|
|
289
|
+
### `Options`
|
|
290
|
+
|
|
291
|
+
Configuration (TypeScript type).
|
|
292
|
+
|
|
293
|
+
###### Properties
|
|
294
|
+
|
|
295
|
+
* `extensions`
|
|
296
|
+
([`Array<MicromarkExtension>`][github-micromark-extension], optional)
|
|
297
|
+
— micromark extensions to change how markdown is parsed
|
|
298
|
+
* `mdastExtensions`
|
|
299
|
+
([`Array<Extension | Array<Extension>>`][api-extension],
|
|
300
|
+
optional)
|
|
301
|
+
— extensions for this utility to change how tokens are turned into a tree
|
|
302
|
+
|
|
303
|
+
### `Token`
|
|
304
|
+
|
|
305
|
+
Token from micromark (TypeScript type).
|
|
306
|
+
|
|
307
|
+
###### Type
|
|
308
|
+
|
|
309
|
+
```ts
|
|
310
|
+
type Token = { /* … */ }
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### `Transform`
|
|
314
|
+
|
|
315
|
+
Extra transform, to change the AST afterwards (TypeScript type).
|
|
316
|
+
|
|
317
|
+
###### Parameters
|
|
318
|
+
|
|
319
|
+
* `tree` ([`Root`][github-mdast-root])
|
|
320
|
+
— tree to transform
|
|
321
|
+
|
|
322
|
+
###### Returns
|
|
323
|
+
|
|
324
|
+
New tree ([`Root`][github-mdast-root]) or nothing
|
|
325
|
+
(in which case the current tree is used).
|
|
326
|
+
|
|
327
|
+
### `Value`
|
|
328
|
+
|
|
329
|
+
Contents of the file (TypeScript type).
|
|
330
|
+
|
|
331
|
+
See [`micromark`][github-micromark-api] for more info.
|
|
332
|
+
|
|
333
|
+
###### Type
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
type Value = Uint8Array | string
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
## List of extensions
|
|
340
|
+
|
|
341
|
+
* [`syntax-tree/mdast-util-directive`][github-mdast-util-directive]
|
|
342
|
+
— directives
|
|
343
|
+
* [`syntax-tree/mdast-util-frontmatter`][github-mdast-util-frontmatter]
|
|
344
|
+
— frontmatter (YAML, TOML, more)
|
|
345
|
+
* [`syntax-tree/mdast-util-gfm`][github-mdast-util-gfm]
|
|
346
|
+
— GFM
|
|
347
|
+
* [`syntax-tree/mdast-util-gfm-autolink-literal`](https://github.com/syntax-tree/mdast-util-gfm-autolink-literal)
|
|
348
|
+
— GFM autolink literals
|
|
349
|
+
* [`syntax-tree/mdast-util-gfm-footnote`](https://github.com/syntax-tree/mdast-util-gfm-footnote)
|
|
350
|
+
— GFM footnotes
|
|
351
|
+
* [`syntax-tree/mdast-util-gfm-strikethrough`](https://github.com/syntax-tree/mdast-util-gfm-strikethrough)
|
|
352
|
+
— GFM strikethrough
|
|
353
|
+
* [`syntax-tree/mdast-util-gfm-table`](https://github.com/syntax-tree/mdast-util-gfm-table)
|
|
354
|
+
— GFM tables
|
|
355
|
+
* [`syntax-tree/mdast-util-gfm-task-list-item`](https://github.com/syntax-tree/mdast-util-gfm-task-list-item)
|
|
356
|
+
— GFM task list items
|
|
357
|
+
* [`syntax-tree/mdast-util-math`][github-mdast-util-math]
|
|
358
|
+
— math
|
|
359
|
+
* [`syntax-tree/mdast-util-mdx`][github-mdast-util-mdx]
|
|
360
|
+
— MDX
|
|
361
|
+
* [`syntax-tree/mdast-util-mdx-expression`](https://github.com/syntax-tree/mdast-util-mdx-expression)
|
|
362
|
+
— MDX expressions
|
|
363
|
+
* [`syntax-tree/mdast-util-mdx-jsx`](https://github.com/syntax-tree/mdast-util-mdx-jsx)
|
|
364
|
+
— MDX JSX
|
|
365
|
+
* [`syntax-tree/mdast-util-mdxjs-esm`](https://github.com/syntax-tree/mdast-util-mdxjs-esm)
|
|
366
|
+
— MDX ESM
|
|
367
|
+
|
|
368
|
+
## Syntax
|
|
369
|
+
|
|
370
|
+
Markdown is parsed according to CommonMark.
|
|
371
|
+
Extensions can add support for other syntax.
|
|
372
|
+
If you’re interested in extending markdown,
|
|
373
|
+
[more information is available in micromark’s
|
|
374
|
+
readme][github-micromark-extension].
|
|
375
|
+
|
|
376
|
+
## Syntax tree
|
|
377
|
+
|
|
378
|
+
The syntax tree is [mdast][github-mdast].
|
|
379
|
+
|
|
380
|
+
## Types
|
|
381
|
+
|
|
382
|
+
This package is fully typed with [TypeScript][].
|
|
383
|
+
It exports the additional types
|
|
384
|
+
[`CompileContext`][api-compile-context],
|
|
385
|
+
[`CompileData`][api-compile-data],
|
|
386
|
+
[`Encoding`][api-encoding],
|
|
387
|
+
[`Extension`][api-extension],
|
|
388
|
+
[`Handle`][api-handle],
|
|
389
|
+
[`OnEnterError`][api-on-enter-error],
|
|
390
|
+
[`OnExitError`][api-on-exit-error],
|
|
391
|
+
[`Options`][api-options],
|
|
392
|
+
[`Token`][api-token],
|
|
393
|
+
[`Transform`][api-transform], and
|
|
394
|
+
[`Value`][api-value].
|
|
395
|
+
|
|
396
|
+
## Compatibility
|
|
397
|
+
|
|
398
|
+
Projects maintained by the unified collective are compatible with maintained
|
|
399
|
+
versions of Node.js.
|
|
400
|
+
|
|
401
|
+
When we cut a new major release, we drop support for unmaintained versions of
|
|
402
|
+
Node.
|
|
403
|
+
This means we try to keep the current release line,
|
|
404
|
+
`mdast-util-from-markdown@^2`, compatible with Node.js 16.
|
|
405
|
+
|
|
406
|
+
## Security
|
|
407
|
+
|
|
408
|
+
As markdown is sometimes used for HTML, and improper use of HTML can open you up
|
|
409
|
+
to a [cross-site scripting (XSS)][wikipedia-xss] attack, use of `mdast-util-from-markdown`
|
|
410
|
+
can also be unsafe.
|
|
411
|
+
When going to HTML, use this utility in combination with
|
|
412
|
+
[`hast-util-sanitize`][github-hast-util-sanitize] to make the tree safe.
|
|
413
|
+
|
|
414
|
+
## Related
|
|
415
|
+
|
|
416
|
+
* [`syntax-tree/mdast-util-to-markdown`](https://github.com/syntax-tree/mdast-util-to-markdown)
|
|
417
|
+
— serialize mdast as markdown
|
|
418
|
+
* [`micromark/micromark`][github-micromark]
|
|
419
|
+
— parse markdown
|
|
420
|
+
* [`remarkjs/remark`][github-remark]
|
|
421
|
+
— process markdown
|
|
422
|
+
|
|
423
|
+
## Contribute
|
|
424
|
+
|
|
425
|
+
See [`contributing.md`][health-contributing]
|
|
426
|
+
in
|
|
427
|
+
[`syntax-tree/.github`][health]
|
|
428
|
+
for ways to get started.
|
|
429
|
+
See [`support.md`][health-support] for ways to get help.
|
|
430
|
+
|
|
431
|
+
This project has a [code of conduct][health-coc].
|
|
432
|
+
By interacting with this repository, organization, or community you agree to
|
|
433
|
+
abide by its terms.
|
|
434
|
+
|
|
435
|
+
## License
|
|
436
|
+
|
|
437
|
+
[MIT][file-license] © [Titus Wormer][wooorm]
|
|
438
|
+
|
|
439
|
+
<!-- Definitions -->
|
|
440
|
+
|
|
441
|
+
[api-compile-context]: #compilecontext
|
|
442
|
+
|
|
443
|
+
[api-compile-data]: #compiledata
|
|
444
|
+
|
|
445
|
+
[api-encoding]: #encoding
|
|
446
|
+
|
|
447
|
+
[api-extension]: #extension
|
|
448
|
+
|
|
449
|
+
[api-from-markdown]: #frommarkdownvalue-encoding-options
|
|
450
|
+
|
|
451
|
+
[api-handle]: #handle
|
|
452
|
+
|
|
453
|
+
[api-on-enter-error]: #onentererror
|
|
454
|
+
|
|
455
|
+
[api-on-exit-error]: #onexiterror
|
|
456
|
+
|
|
457
|
+
[api-options]: #options
|
|
458
|
+
|
|
459
|
+
[api-token]: #token
|
|
460
|
+
|
|
461
|
+
[api-transform]: #transform
|
|
462
|
+
|
|
463
|
+
[api-value]: #value
|
|
464
|
+
|
|
465
|
+
[badge-build-image]: https://github.com/syntax-tree/mdast-util-from-markdown/workflows/main/badge.svg
|
|
466
|
+
|
|
467
|
+
[badge-build-url]: https://github.com/syntax-tree/mdast-util-from-markdown/actions
|
|
468
|
+
|
|
469
|
+
[badge-coverage-image]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-from-markdown.svg
|
|
470
|
+
|
|
471
|
+
[badge-coverage-url]: https://codecov.io/github/syntax-tree/mdast-util-from-markdown
|
|
472
|
+
|
|
473
|
+
[badge-downloads-image]: https://img.shields.io/npm/dm/mdast-util-from-markdown.svg
|
|
474
|
+
|
|
475
|
+
[badge-downloads-url]: https://www.npmjs.com/package/mdast-util-from-markdown
|
|
476
|
+
|
|
477
|
+
[badge-size-image]: https://img.shields.io/bundlejs/size/mdast-util-from-markdown
|
|
478
|
+
|
|
479
|
+
[badge-size-url]: https://bundlejs.com/?q=mdast-util-from-markdown
|
|
480
|
+
|
|
481
|
+
[esmsh]: https://esm.sh
|
|
482
|
+
|
|
483
|
+
[file-license]: license
|
|
484
|
+
|
|
485
|
+
[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
486
|
+
|
|
487
|
+
[github-hast-util-sanitize]: https://github.com/syntax-tree/hast-util-sanitize
|
|
488
|
+
|
|
489
|
+
[github-mdast]: https://github.com/syntax-tree/mdast
|
|
490
|
+
|
|
491
|
+
[github-mdast-nodes]: https://github.com/syntax-tree/mdast#nodes
|
|
492
|
+
|
|
493
|
+
[github-mdast-root]: https://github.com/syntax-tree/mdast#root
|
|
494
|
+
|
|
495
|
+
[github-mdast-util-directive]: https://github.com/syntax-tree/mdast-util-directive
|
|
496
|
+
|
|
497
|
+
[github-mdast-util-frontmatter]: https://github.com/syntax-tree/mdast-util-frontmatter
|
|
498
|
+
|
|
499
|
+
[github-mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm
|
|
500
|
+
|
|
501
|
+
[github-mdast-util-math]: https://github.com/syntax-tree/mdast-util-math
|
|
502
|
+
|
|
503
|
+
[github-mdast-util-mdx]: https://github.com/syntax-tree/mdast-util-mdx
|
|
504
|
+
|
|
505
|
+
[github-micromark]: https://github.com/micromark/micromark
|
|
506
|
+
|
|
507
|
+
[github-micromark-api]: https://github.com/micromark/micromark/tree/main/packages/micromark#micromarkvalue-encoding-options
|
|
508
|
+
|
|
509
|
+
[github-micromark-extension]: https://github.com/micromark/micromark#extensions
|
|
510
|
+
|
|
511
|
+
[github-remark]: https://github.com/remarkjs/remark
|
|
512
|
+
|
|
513
|
+
[github-remark-parse]: https://github.com/remarkjs/remark/tree/main/packages/remark-parse
|
|
514
|
+
|
|
515
|
+
[health]: https://github.com/syntax-tree/.github
|
|
516
|
+
|
|
517
|
+
[health-coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
|
|
518
|
+
|
|
519
|
+
[health-contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
|
|
520
|
+
|
|
521
|
+
[health-support]: https://github.com/syntax-tree/.github/blob/main/support.md
|
|
522
|
+
|
|
523
|
+
[mozilla-uint8-array]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array
|
|
524
|
+
|
|
525
|
+
[node-packages-conditions]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions
|
|
526
|
+
|
|
527
|
+
[node-util-encoding]: https://nodejs.org/api/util.html#whatwg-supported-encodings
|
|
528
|
+
|
|
529
|
+
[npmjs-install]: https://docs.npmjs.com/cli/install
|
|
530
|
+
|
|
531
|
+
[typescript]: https://www.typescriptlang.org
|
|
532
|
+
|
|
533
|
+
[wikipedia-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
|
|
534
|
+
|
|
535
|
+
[wooorm]: https://wooorm.com
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type {Options} from './lib/index.js'
|
|
2
|
+
|
|
3
|
+
export {gfmTableFromMarkdown, gfmTableToMarkdown} from './lib/index.js'
|
|
4
|
+
|
|
5
|
+
// Add custom data tracked to turn markdown into a tree.
|
|
6
|
+
declare module 'mdast-util-from-markdown' {
|
|
7
|
+
interface CompileData {
|
|
8
|
+
/**
|
|
9
|
+
* Whether we’re currently in a table.
|
|
10
|
+
*/
|
|
11
|
+
inTable?: boolean | undefined
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Add custom data tracked to turn a syntax tree into markdown.
|
|
16
|
+
declare module 'mdast-util-to-markdown' {
|
|
17
|
+
interface ConstructNameMap {
|
|
18
|
+
/**
|
|
19
|
+
* Whole table.
|
|
20
|
+
*
|
|
21
|
+
* ```markdown
|
|
22
|
+
* > | | a |
|
|
23
|
+
* ^^^^^
|
|
24
|
+
* > | | - |
|
|
25
|
+
* ^^^^^
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
table: 'table'
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Table cell.
|
|
32
|
+
*
|
|
33
|
+
* ```markdown
|
|
34
|
+
* > | | a |
|
|
35
|
+
* ^^^^^
|
|
36
|
+
* | | - |
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
tableCell: 'tableCell'
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Table row.
|
|
43
|
+
*
|
|
44
|
+
* ```markdown
|
|
45
|
+
* > | | a |
|
|
46
|
+
* ^^^^^
|
|
47
|
+
* | | - |
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
tableRow: 'tableRow'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Note: `Table` is exposed from `@types/mdast`.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create an extension for `mdast-util-from-markdown` to enable GFM tables in
|
|
3
|
+
* markdown.
|
|
4
|
+
*
|
|
5
|
+
* @returns {FromMarkdownExtension}
|
|
6
|
+
* Extension for `mdast-util-from-markdown` to enable GFM tables.
|
|
7
|
+
*/
|
|
8
|
+
export function gfmTableFromMarkdown(): FromMarkdownExtension
|
|
9
|
+
/**
|
|
10
|
+
* Create an extension for `mdast-util-to-markdown` to enable GFM tables in
|
|
11
|
+
* markdown.
|
|
12
|
+
*
|
|
13
|
+
* @param {Options | null | undefined} [options]
|
|
14
|
+
* Configuration.
|
|
15
|
+
* @returns {ToMarkdownExtension}
|
|
16
|
+
* Extension for `mdast-util-to-markdown` to enable GFM tables.
|
|
17
|
+
*/
|
|
18
|
+
export function gfmTableToMarkdown(
|
|
19
|
+
options?: Options | null | undefined
|
|
20
|
+
): ToMarkdownExtension
|
|
21
|
+
export type InlineCode = import('mdast').InlineCode
|
|
22
|
+
export type Table = import('mdast').Table
|
|
23
|
+
export type TableCell = import('mdast').TableCell
|
|
24
|
+
export type TableRow = import('mdast').TableRow
|
|
25
|
+
export type MarkdownTableOptions = import('markdown-table').Options
|
|
26
|
+
export type CompileContext = import('mdast-util-from-markdown').CompileContext
|
|
27
|
+
export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
|
|
28
|
+
export type FromMarkdownHandle = import('mdast-util-from-markdown').Handle
|
|
29
|
+
export type ToMarkdownExtension = import('mdast-util-to-markdown').Options
|
|
30
|
+
export type ToMarkdownHandle = import('mdast-util-to-markdown').Handle
|
|
31
|
+
export type State = import('mdast-util-to-markdown').State
|
|
32
|
+
export type Info = import('mdast-util-to-markdown').Info
|
|
33
|
+
/**
|
|
34
|
+
* Configuration.
|
|
35
|
+
*/
|
|
36
|
+
export type Options = {
|
|
37
|
+
/**
|
|
38
|
+
* Whether to add a space of padding between delimiters and cells (default:
|
|
39
|
+
* `true`).
|
|
40
|
+
*/
|
|
41
|
+
tableCellPadding?: boolean | null | undefined
|
|
42
|
+
/**
|
|
43
|
+
* Whether to align the delimiters (default: `true`).
|
|
44
|
+
*/
|
|
45
|
+
tablePipeAlign?: boolean | null | undefined
|
|
46
|
+
/**
|
|
47
|
+
* Function to detect the length of table cell content, used when aligning
|
|
48
|
+
* the delimiters between cells (optional).
|
|
49
|
+
*/
|
|
50
|
+
stringLength?: MarkdownTableOptions['stringLength'] | null | undefined
|
|
51
|
+
}
|