@openclaw/feishu 2026.7.1-beta.6 → 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,605 @@
|
|
|
1
|
+
# mdast-util-gfm-table
|
|
2
|
+
|
|
3
|
+
[![Build][build-badge]][build]
|
|
4
|
+
[![Coverage][coverage-badge]][coverage]
|
|
5
|
+
[![Downloads][downloads-badge]][downloads]
|
|
6
|
+
[![Size][size-badge]][size]
|
|
7
|
+
[![Sponsors][sponsors-badge]][collective]
|
|
8
|
+
[![Backers][backers-badge]][collective]
|
|
9
|
+
[![Chat][chat-badge]][chat]
|
|
10
|
+
|
|
11
|
+
[mdast][] extensions to parse and serialize [GFM][] tables.
|
|
12
|
+
|
|
13
|
+
## Contents
|
|
14
|
+
|
|
15
|
+
* [What is this?](#what-is-this)
|
|
16
|
+
* [When to use this](#when-to-use-this)
|
|
17
|
+
* [Install](#install)
|
|
18
|
+
* [Use](#use)
|
|
19
|
+
* [API](#api)
|
|
20
|
+
* [`gfmTableFromMarkdown`](#gfmtablefrommarkdown)
|
|
21
|
+
* [`gfmTableToMarkdown(options?)`](#gfmtabletomarkdownoptions)
|
|
22
|
+
* [`Options`](#options)
|
|
23
|
+
* [Examples](#examples)
|
|
24
|
+
* [Example: `stringLength`](#example-stringlength)
|
|
25
|
+
* [HTML](#html)
|
|
26
|
+
* [Syntax](#syntax)
|
|
27
|
+
* [Syntax tree](#syntax-tree)
|
|
28
|
+
* [Nodes](#nodes)
|
|
29
|
+
* [Enumeration](#enumeration)
|
|
30
|
+
* [Content model](#content-model)
|
|
31
|
+
* [Types](#types)
|
|
32
|
+
* [Compatibility](#compatibility)
|
|
33
|
+
* [Related](#related)
|
|
34
|
+
* [Contribute](#contribute)
|
|
35
|
+
* [License](#license)
|
|
36
|
+
|
|
37
|
+
## What is this?
|
|
38
|
+
|
|
39
|
+
This package contains two extensions that add support for GFM table syntax in
|
|
40
|
+
markdown to [mdast][].
|
|
41
|
+
These extensions plug into
|
|
42
|
+
[`mdast-util-from-markdown`][mdast-util-from-markdown] (to support parsing
|
|
43
|
+
tables in markdown into a syntax tree) and
|
|
44
|
+
[`mdast-util-to-markdown`][mdast-util-to-markdown] (to support serializing
|
|
45
|
+
tables in syntax trees to markdown).
|
|
46
|
+
|
|
47
|
+
## When to use this
|
|
48
|
+
|
|
49
|
+
You can use these extensions when you are working with
|
|
50
|
+
`mdast-util-from-markdown` and `mdast-util-to-markdown` already.
|
|
51
|
+
|
|
52
|
+
When working with `mdast-util-from-markdown`, you must combine this package
|
|
53
|
+
with [`micromark-extension-gfm-table`][extension].
|
|
54
|
+
|
|
55
|
+
When you don’t need a syntax tree, you can use [`micromark`][micromark]
|
|
56
|
+
directly with `micromark-extension-gfm-table`.
|
|
57
|
+
|
|
58
|
+
When you are working with syntax trees and want all of GFM, use
|
|
59
|
+
[`mdast-util-gfm`][mdast-util-gfm] instead.
|
|
60
|
+
|
|
61
|
+
All these packages are used [`remark-gfm`][remark-gfm], which
|
|
62
|
+
focusses on making it easier to transform content by abstracting these
|
|
63
|
+
internals away.
|
|
64
|
+
|
|
65
|
+
This utility does not handle how markdown is turned to HTML.
|
|
66
|
+
That’s done by [`mdast-util-to-hast`][mdast-util-to-hast].
|
|
67
|
+
|
|
68
|
+
## Install
|
|
69
|
+
|
|
70
|
+
This package is [ESM only][esm].
|
|
71
|
+
In Node.js (version 16+), install with [npm][]:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npm install mdast-util-gfm-table
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
In Deno with [`esm.sh`][esmsh]:
|
|
78
|
+
|
|
79
|
+
```js
|
|
80
|
+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'https://esm.sh/mdast-util-gfm-table@2'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
In browsers with [`esm.sh`][esmsh]:
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<script type="module">
|
|
87
|
+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'https://esm.sh/mdast-util-gfm-table@2?bundle'
|
|
88
|
+
</script>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Use
|
|
92
|
+
|
|
93
|
+
Say our document `example.md` contains:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
| a | b | c | d |
|
|
97
|
+
| - | :- | -: | :-: |
|
|
98
|
+
| e | f |
|
|
99
|
+
| g | h | i | j | k |
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
…and our module `example.js` looks as follows:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
import fs from 'node:fs/promises'
|
|
106
|
+
import {gfmTable} from 'micromark-extension-gfm-table'
|
|
107
|
+
import {fromMarkdown} from 'mdast-util-from-markdown'
|
|
108
|
+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'
|
|
109
|
+
import {toMarkdown} from 'mdast-util-to-markdown'
|
|
110
|
+
|
|
111
|
+
const doc = await fs.readFile('example.md')
|
|
112
|
+
|
|
113
|
+
const tree = fromMarkdown(doc, {
|
|
114
|
+
extensions: [gfmTable()],
|
|
115
|
+
mdastExtensions: [gfmTableFromMarkdown()]
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
console.log(tree)
|
|
119
|
+
|
|
120
|
+
const out = toMarkdown(tree, {extensions: [gfmTableToMarkdown()]})
|
|
121
|
+
|
|
122
|
+
console.log(out)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
…now running `node example.js` yields (positional info removed for brevity):
|
|
126
|
+
|
|
127
|
+
```js
|
|
128
|
+
{
|
|
129
|
+
type: 'root',
|
|
130
|
+
children: [
|
|
131
|
+
{
|
|
132
|
+
type: 'table',
|
|
133
|
+
align: [null, 'left', 'right', 'center'],
|
|
134
|
+
children: [
|
|
135
|
+
{
|
|
136
|
+
type: 'tableRow',
|
|
137
|
+
children: [
|
|
138
|
+
{type: 'tableCell', children: [{type: 'text', value: 'a'}]},
|
|
139
|
+
{type: 'tableCell', children: [{type: 'text', value: 'b'}]},
|
|
140
|
+
{type: 'tableCell', children: [{type: 'text', value: 'c'}]},
|
|
141
|
+
{type: 'tableCell', children: [{type: 'text', value: 'd'}]}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'tableRow',
|
|
146
|
+
children: [
|
|
147
|
+
{type: 'tableCell', children: [{type: 'text', value: 'e'}]},
|
|
148
|
+
{type: 'tableCell', children: [{type: 'text', value: 'f'}]}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
type: 'tableRow',
|
|
153
|
+
children: [
|
|
154
|
+
{type: 'tableCell', children: [{type: 'text', value: 'g'}]},
|
|
155
|
+
{type: 'tableCell', children: [{type: 'text', value: 'h'}]},
|
|
156
|
+
{type: 'tableCell', children: [{type: 'text', value: 'i'}]},
|
|
157
|
+
{type: 'tableCell', children: [{type: 'text', value: 'j'}]},
|
|
158
|
+
{type: 'tableCell', children: [{type: 'text', value: 'k'}]}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
```markdown
|
|
168
|
+
| a | b | c | d | |
|
|
169
|
+
| - | :- | -: | :-: | - |
|
|
170
|
+
| e | f | | | |
|
|
171
|
+
| g | h | i | j | k |
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## API
|
|
175
|
+
|
|
176
|
+
This package exports the identifiers
|
|
177
|
+
[`gfmTableFromMarkdown`][api-gfm-table-from-markdown] and
|
|
178
|
+
[`gfmTableToMarkdown`][api-gfm-table-to-markdown].
|
|
179
|
+
There is no default export.
|
|
180
|
+
|
|
181
|
+
### `gfmTableFromMarkdown`
|
|
182
|
+
|
|
183
|
+
Create an extension for [`mdast-util-from-markdown`][mdast-util-from-markdown]
|
|
184
|
+
to enable GFM tables in markdown.
|
|
185
|
+
|
|
186
|
+
###### Returns
|
|
187
|
+
|
|
188
|
+
Extension for `mdast-util-from-markdown` to enable GFM tables
|
|
189
|
+
([`FromMarkdownExtension`][from-markdown-extension]).
|
|
190
|
+
|
|
191
|
+
### `gfmTableToMarkdown(options?)`
|
|
192
|
+
|
|
193
|
+
Create an extension for [`mdast-util-to-markdown`][mdast-util-to-markdown] to
|
|
194
|
+
enable GFM tables in markdown.
|
|
195
|
+
|
|
196
|
+
###### Parameters
|
|
197
|
+
|
|
198
|
+
* `options` ([`Options`][api-options], optional)
|
|
199
|
+
— configuration
|
|
200
|
+
|
|
201
|
+
###### Returns
|
|
202
|
+
|
|
203
|
+
Extension for `mdast-util-to-markdown` to enable GFM tables
|
|
204
|
+
([`ToMarkdownExtension`][to-markdown-extension]).
|
|
205
|
+
|
|
206
|
+
### `Options`
|
|
207
|
+
|
|
208
|
+
Configuration (TypeScript type).
|
|
209
|
+
|
|
210
|
+
###### Fields
|
|
211
|
+
|
|
212
|
+
* `tableCellPadding` (`boolean`, default: `true`)
|
|
213
|
+
— whether to add a space of padding between delimiters and cells
|
|
214
|
+
* `tablePipeAlign` (`boolean`, default: `true`)
|
|
215
|
+
— whether to align the delimiters
|
|
216
|
+
* `stringLength` (`((value: string) => number)`, default: `s => s.length`)
|
|
217
|
+
— function to detect the length of table cell content, used when aligning
|
|
218
|
+
the delimiters between cells
|
|
219
|
+
|
|
220
|
+
## Examples
|
|
221
|
+
|
|
222
|
+
### Example: `stringLength`
|
|
223
|
+
|
|
224
|
+
It’s possible to align tables based on the visual width of cells.
|
|
225
|
+
First, let’s show the problem:
|
|
226
|
+
|
|
227
|
+
```js
|
|
228
|
+
import {gfmTable} from 'micromark-extension-gfm-table'
|
|
229
|
+
import {fromMarkdown} from 'mdast-util-from-markdown'
|
|
230
|
+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'
|
|
231
|
+
import {toMarkdown} from 'mdast-util-to-markdown'
|
|
232
|
+
|
|
233
|
+
const doc = `| Alpha | Bravo |
|
|
234
|
+
| - | - |
|
|
235
|
+
| 中文 | Charlie |
|
|
236
|
+
| 👩❤️👩 | Delta |`
|
|
237
|
+
|
|
238
|
+
const tree = fromMarkdown(doc, {
|
|
239
|
+
extensions: [gfmTable],
|
|
240
|
+
mdastExtensions: [gfmTableFromMarkdown]
|
|
241
|
+
})
|
|
242
|
+
|
|
243
|
+
console.log(toMarkdown(tree, {extensions: [gfmTableToMarkdown()]}))
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
The above code shows how these utilities can be used to format markdown.
|
|
247
|
+
The output is as follows:
|
|
248
|
+
|
|
249
|
+
```markdown
|
|
250
|
+
| Alpha | Bravo |
|
|
251
|
+
| -------- | ------- |
|
|
252
|
+
| 中文 | Charlie |
|
|
253
|
+
| 👩❤️👩 | Delta |
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
To improve the alignment of these full-width characters and emoji, pass a
|
|
257
|
+
`stringLength` function that calculates the visual width of cells.
|
|
258
|
+
One such algorithm is [`string-width`][string-width].
|
|
259
|
+
It can be used like so:
|
|
260
|
+
|
|
261
|
+
```diff
|
|
262
|
+
@@ -2,6 +2,7 @@ import {gfmTable} from 'micromark-extension-gfm-table'
|
|
263
|
+
import {fromMarkdown} from 'mdast-util-from-markdown'
|
|
264
|
+
import {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'
|
|
265
|
+
import {toMarkdown} from 'mdast-util-to-markdown'
|
|
266
|
+
+import stringWidth from 'string-width'
|
|
267
|
+
|
|
268
|
+
const doc = `| Alpha | Bravo |
|
|
269
|
+
| - | - |
|
|
270
|
+
@@ -13,4 +14,8 @@ const tree = fromMarkdown(doc, {
|
|
271
|
+
mdastExtensions: [gfmTableFromMarkdown()]
|
|
272
|
+
})
|
|
273
|
+
|
|
274
|
+
-console.log(toMarkdown(tree, {extensions: [gfmTableToMarkdown()]}))
|
|
275
|
+
+console.log(
|
|
276
|
+
+ toMarkdown(tree, {
|
|
277
|
+
+ extensions: [gfmTableToMarkdown({stringLength: stringWidth})]
|
|
278
|
+
+ })
|
|
279
|
+
+)
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
The output of our code with these changes is as follows:
|
|
283
|
+
|
|
284
|
+
```markdown
|
|
285
|
+
| Alpha | Bravo |
|
|
286
|
+
| ----- | ------- |
|
|
287
|
+
| 中文 | Charlie |
|
|
288
|
+
| 👩❤️👩 | Delta |
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## HTML
|
|
292
|
+
|
|
293
|
+
This utility does not handle how markdown is turned to HTML.
|
|
294
|
+
That’s done by [`mdast-util-to-hast`][mdast-util-to-hast].
|
|
295
|
+
|
|
296
|
+
## Syntax
|
|
297
|
+
|
|
298
|
+
See [Syntax in `micromark-extension-gfm-table`][syntax].
|
|
299
|
+
|
|
300
|
+
## Syntax tree
|
|
301
|
+
|
|
302
|
+
The following interfaces are added to **[mdast][]** by this utility.
|
|
303
|
+
|
|
304
|
+
### Nodes
|
|
305
|
+
|
|
306
|
+
#### `Table`
|
|
307
|
+
|
|
308
|
+
```idl
|
|
309
|
+
interface Table <: Parent {
|
|
310
|
+
type: 'table'
|
|
311
|
+
align: [alignType]?
|
|
312
|
+
children: [TableContent]
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
**Table** (**[Parent][dfn-parent]**) represents two-dimensional data.
|
|
317
|
+
|
|
318
|
+
**Table** can be used where **[flow][dfn-flow-content]** content is expected.
|
|
319
|
+
Its content model is **[table][dfn-table-content]** content.
|
|
320
|
+
|
|
321
|
+
The *[head][term-head]* of the node represents the labels of the columns.
|
|
322
|
+
|
|
323
|
+
An `align` field can be present.
|
|
324
|
+
If present, it must be a list of **[alignTypes][dfn-enum-align-type]**.
|
|
325
|
+
It represents how cells in columns are aligned.
|
|
326
|
+
|
|
327
|
+
For example, the following markdown:
|
|
328
|
+
|
|
329
|
+
```markdown
|
|
330
|
+
| foo | bar |
|
|
331
|
+
| :-- | :-: |
|
|
332
|
+
| baz | qux |
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
Yields:
|
|
336
|
+
|
|
337
|
+
```js
|
|
338
|
+
{
|
|
339
|
+
type: 'table',
|
|
340
|
+
align: ['left', 'center'],
|
|
341
|
+
children: [
|
|
342
|
+
{
|
|
343
|
+
type: 'tableRow',
|
|
344
|
+
children: [
|
|
345
|
+
{
|
|
346
|
+
type: 'tableCell',
|
|
347
|
+
children: [{type: 'text', value: 'foo'}]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
type: 'tableCell',
|
|
351
|
+
children: [{type: 'text', value: 'bar'}]
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
type: 'tableRow',
|
|
357
|
+
children: [
|
|
358
|
+
{
|
|
359
|
+
type: 'tableCell',
|
|
360
|
+
children: [{type: 'text', value: 'baz'}]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
type: 'tableCell',
|
|
364
|
+
children: [{type: 'text', value: 'qux'}]
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
#### `TableRow`
|
|
373
|
+
|
|
374
|
+
```idl
|
|
375
|
+
interface TableRow <: Parent {
|
|
376
|
+
type: "tableRow"
|
|
377
|
+
children: [RowContent]
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
**TableRow** (**[Parent][dfn-parent]**) represents a row of cells in a table.
|
|
382
|
+
|
|
383
|
+
**TableRow** can be used where **[table][dfn-table-content]** content is
|
|
384
|
+
expected.
|
|
385
|
+
Its content model is **[row][dfn-row-content]** content.
|
|
386
|
+
|
|
387
|
+
If the node is a *[head][term-head]*, it represents the labels of the columns
|
|
388
|
+
for its parent **[Table][dfn-table]**.
|
|
389
|
+
|
|
390
|
+
For an example, see **[Table][dfn-table]**.
|
|
391
|
+
|
|
392
|
+
#### `TableCell`
|
|
393
|
+
|
|
394
|
+
```idl
|
|
395
|
+
interface TableCell <: Parent {
|
|
396
|
+
type: "tableCell"
|
|
397
|
+
children: [PhrasingContent]
|
|
398
|
+
}
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
**TableCell** (**[Parent][dfn-parent]**) represents a header cell in a
|
|
402
|
+
**[Table][dfn-table]**, if its parent is a *[head][term-head]*, or a data
|
|
403
|
+
cell otherwise.
|
|
404
|
+
|
|
405
|
+
**TableCell** can be used where **[row][dfn-row-content]** content is expected.
|
|
406
|
+
Its content model is **[phrasing][dfn-phrasing-content]** content excluding
|
|
407
|
+
**[Break][dfn-break]** nodes.
|
|
408
|
+
|
|
409
|
+
For an example, see **[Table][dfn-table]**.
|
|
410
|
+
|
|
411
|
+
### Enumeration
|
|
412
|
+
|
|
413
|
+
#### `alignType`
|
|
414
|
+
|
|
415
|
+
```idl
|
|
416
|
+
enum alignType {
|
|
417
|
+
'center' | 'left' | 'right' | null
|
|
418
|
+
}
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**alignType** represents how phrasing content is aligned
|
|
422
|
+
([\[CSSTEXT\]][css-text]).
|
|
423
|
+
|
|
424
|
+
* **`'left'`**: See the [`left`][css-left] value of the `text-align` CSS
|
|
425
|
+
property
|
|
426
|
+
* **`'right'`**: See the [`right`][css-right] value of the `text-align`
|
|
427
|
+
CSS property
|
|
428
|
+
* **`'center'`**: See the [`center`][css-center] value of the `text-align`
|
|
429
|
+
CSS property
|
|
430
|
+
* **`null`**: phrasing content is aligned as defined by the host environment
|
|
431
|
+
|
|
432
|
+
### Content model
|
|
433
|
+
|
|
434
|
+
#### `FlowContent` (GFM table)
|
|
435
|
+
|
|
436
|
+
```idl
|
|
437
|
+
type FlowContentGfm = Table | FlowContent
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
#### `TableContent`
|
|
441
|
+
|
|
442
|
+
```idl
|
|
443
|
+
type TableContent = TableRow
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
**Table** content represent the rows in a table.
|
|
447
|
+
|
|
448
|
+
#### `RowContent`
|
|
449
|
+
|
|
450
|
+
```idl
|
|
451
|
+
type RowContent = TableCell
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
**Row** content represent the cells in a row.
|
|
455
|
+
|
|
456
|
+
## Types
|
|
457
|
+
|
|
458
|
+
This package is fully typed with [TypeScript][].
|
|
459
|
+
It exports the additional type [`Options`][api-options].
|
|
460
|
+
|
|
461
|
+
The `Table`, `TableRow`, and `TableCell` types of the mdast nodes are exposed
|
|
462
|
+
from `@types/mdast`.
|
|
463
|
+
|
|
464
|
+
## Compatibility
|
|
465
|
+
|
|
466
|
+
Projects maintained by the unified collective are compatible with maintained
|
|
467
|
+
versions of Node.js.
|
|
468
|
+
|
|
469
|
+
When we cut a new major release, we drop support for unmaintained versions of
|
|
470
|
+
Node.
|
|
471
|
+
This means we try to keep the current release line, `mdast-util-gfm-table@^2`,
|
|
472
|
+
compatible with Node.js 16.
|
|
473
|
+
|
|
474
|
+
This utility works with `mdast-util-from-markdown` version 2+ and
|
|
475
|
+
`mdast-util-to-markdown` version 2+.
|
|
476
|
+
|
|
477
|
+
## Related
|
|
478
|
+
|
|
479
|
+
* [`remarkjs/remark-gfm`][remark-gfm]
|
|
480
|
+
— remark plugin to support GFM
|
|
481
|
+
* [`syntax-tree/mdast-util-gfm`][mdast-util-gfm]
|
|
482
|
+
— same but all of GFM (autolink literals, footnotes, strikethrough, tables,
|
|
483
|
+
tasklists)
|
|
484
|
+
* [`micromark/micromark-extension-gfm-table`][extension]
|
|
485
|
+
— micromark extension to parse GFM tables
|
|
486
|
+
|
|
487
|
+
## Contribute
|
|
488
|
+
|
|
489
|
+
See [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for
|
|
490
|
+
ways to get started.
|
|
491
|
+
See [`support.md`][support] for ways to get help.
|
|
492
|
+
|
|
493
|
+
This project has a [code of conduct][coc].
|
|
494
|
+
By interacting with this repository, organization, or community you agree to
|
|
495
|
+
abide by its terms.
|
|
496
|
+
|
|
497
|
+
## License
|
|
498
|
+
|
|
499
|
+
[MIT][license] © [Titus Wormer][author]
|
|
500
|
+
|
|
501
|
+
<!-- Definitions -->
|
|
502
|
+
|
|
503
|
+
[build-badge]: https://github.com/syntax-tree/mdast-util-gfm-table/workflows/main/badge.svg
|
|
504
|
+
|
|
505
|
+
[build]: https://github.com/syntax-tree/mdast-util-gfm-table/actions
|
|
506
|
+
|
|
507
|
+
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-gfm-table.svg
|
|
508
|
+
|
|
509
|
+
[coverage]: https://codecov.io/github/syntax-tree/mdast-util-gfm-table
|
|
510
|
+
|
|
511
|
+
[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-gfm-table.svg
|
|
512
|
+
|
|
513
|
+
[downloads]: https://www.npmjs.com/package/mdast-util-gfm-table
|
|
514
|
+
|
|
515
|
+
[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=mdast-util-gfm-table
|
|
516
|
+
|
|
517
|
+
[size]: https://bundlejs.com/?q=mdast-util-gfm-table
|
|
518
|
+
|
|
519
|
+
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
|
|
520
|
+
|
|
521
|
+
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
|
|
522
|
+
|
|
523
|
+
[collective]: https://opencollective.com/unified
|
|
524
|
+
|
|
525
|
+
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
|
|
526
|
+
|
|
527
|
+
[chat]: https://github.com/syntax-tree/unist/discussions
|
|
528
|
+
|
|
529
|
+
[npm]: https://docs.npmjs.com/cli/install
|
|
530
|
+
|
|
531
|
+
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
532
|
+
|
|
533
|
+
[esmsh]: https://esm.sh
|
|
534
|
+
|
|
535
|
+
[typescript]: https://www.typescriptlang.org
|
|
536
|
+
|
|
537
|
+
[license]: license
|
|
538
|
+
|
|
539
|
+
[author]: https://wooorm.com
|
|
540
|
+
|
|
541
|
+
[health]: https://github.com/syntax-tree/.github
|
|
542
|
+
|
|
543
|
+
[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md
|
|
544
|
+
|
|
545
|
+
[support]: https://github.com/syntax-tree/.github/blob/main/support.md
|
|
546
|
+
|
|
547
|
+
[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
|
|
548
|
+
|
|
549
|
+
[remark-gfm]: https://github.com/remarkjs/remark-gfm
|
|
550
|
+
|
|
551
|
+
[mdast]: https://github.com/syntax-tree/mdast
|
|
552
|
+
|
|
553
|
+
[mdast-util-gfm]: https://github.com/syntax-tree/mdast-util-gfm
|
|
554
|
+
|
|
555
|
+
[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown
|
|
556
|
+
|
|
557
|
+
[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown
|
|
558
|
+
|
|
559
|
+
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
|
|
560
|
+
|
|
561
|
+
[micromark]: https://github.com/micromark/micromark
|
|
562
|
+
|
|
563
|
+
[extension]: https://github.com/micromark/micromark-extension-gfm-table
|
|
564
|
+
|
|
565
|
+
[syntax]: https://github.com/micromark/micromark-extension-gfm-table#syntax
|
|
566
|
+
|
|
567
|
+
[gfm]: https://github.github.com/gfm/
|
|
568
|
+
|
|
569
|
+
[string-width]: https://github.com/sindresorhus/string-width
|
|
570
|
+
|
|
571
|
+
[css-text]: https://drafts.csswg.org/css-text/
|
|
572
|
+
|
|
573
|
+
[css-left]: https://drafts.csswg.org/css-text/#valdef-text-align-left
|
|
574
|
+
|
|
575
|
+
[css-right]: https://drafts.csswg.org/css-text/#valdef-text-align-right
|
|
576
|
+
|
|
577
|
+
[css-center]: https://drafts.csswg.org/css-text/#valdef-text-align-center
|
|
578
|
+
|
|
579
|
+
[term-head]: https://github.com/syntax-tree/unist#head
|
|
580
|
+
|
|
581
|
+
[dfn-parent]: https://github.com/syntax-tree/mdast#parent
|
|
582
|
+
|
|
583
|
+
[dfn-phrasing-content]: https://github.com/syntax-tree/mdast#phrasingcontent
|
|
584
|
+
|
|
585
|
+
[dfn-break]: https://github.com/syntax-tree/mdast#break
|
|
586
|
+
|
|
587
|
+
[from-markdown-extension]: https://github.com/syntax-tree/mdast-util-from-markdown#extension
|
|
588
|
+
|
|
589
|
+
[to-markdown-extension]: https://github.com/syntax-tree/mdast-util-to-markdown#options
|
|
590
|
+
|
|
591
|
+
[api-gfm-table-from-markdown]: #gfmtablefrommarkdown
|
|
592
|
+
|
|
593
|
+
[api-gfm-table-to-markdown]: #gfmtabletomarkdownoptions
|
|
594
|
+
|
|
595
|
+
[api-options]: #options
|
|
596
|
+
|
|
597
|
+
[dfn-flow-content]: #flowcontent-gfm-table
|
|
598
|
+
|
|
599
|
+
[dfn-table-content]: #tablecontent
|
|
600
|
+
|
|
601
|
+
[dfn-enum-align-type]: #aligntype
|
|
602
|
+
|
|
603
|
+
[dfn-row-content]: #rowcontent
|
|
604
|
+
|
|
605
|
+
[dfn-table]: #table
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { phrasing } from "./lib/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {phrasing} from './lib/index.js'
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function phrasing(node?: unknown): node is import("mdast").Break | import("mdast").Delete | import("mdast").Emphasis | import("mdast").FootnoteReference | import("mdast").Image | import("mdast").ImageReference | import("mdast").InlineCode | import("mdast").Link | import("mdast").LinkReference | import("mdast").Strong | import("mdast").Text;
|
|
2
|
+
export type Html = import('mdast').Html;
|
|
3
|
+
export type PhrasingContent = import('mdast').PhrasingContent;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('mdast').Html} Html
|
|
3
|
+
* @typedef {import('mdast').PhrasingContent} PhrasingContent
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {convert} from 'unist-util-is'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Check if the given value is *phrasing content*.
|
|
10
|
+
*
|
|
11
|
+
* > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.
|
|
12
|
+
*
|
|
13
|
+
* @param node
|
|
14
|
+
* Thing to check, typically `Node`.
|
|
15
|
+
* @returns
|
|
16
|
+
* Whether `value` is phrasing content.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export const phrasing =
|
|
20
|
+
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
21
|
+
(
|
|
22
|
+
convert([
|
|
23
|
+
'break',
|
|
24
|
+
'delete',
|
|
25
|
+
'emphasis',
|
|
26
|
+
// To do: next major: removed since footnotes were added to GFM.
|
|
27
|
+
'footnote',
|
|
28
|
+
'footnoteReference',
|
|
29
|
+
'image',
|
|
30
|
+
'imageReference',
|
|
31
|
+
'inlineCode',
|
|
32
|
+
// Enabled by `mdast-util-math`:
|
|
33
|
+
'inlineMath',
|
|
34
|
+
'link',
|
|
35
|
+
'linkReference',
|
|
36
|
+
// Enabled by `mdast-util-mdx`:
|
|
37
|
+
'mdxJsxTextElement',
|
|
38
|
+
// Enabled by `mdast-util-mdx`:
|
|
39
|
+
'mdxTextExpression',
|
|
40
|
+
'strong',
|
|
41
|
+
'text',
|
|
42
|
+
// Enabled by `mdast-util-directive`:
|
|
43
|
+
'textDirective'
|
|
44
|
+
])
|
|
45
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Titus Wormer <tituswormer@gmail.com>
|
|
4
|
+
Copyright (c) 2017 Victor Felder <victor@draft.li>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
7
|
+
a copy of this software and associated documentation files (the
|
|
8
|
+
'Software'), to deal in the Software without restriction, including
|
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
12
|
+
the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be
|
|
15
|
+
included in all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
20
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
21
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
22
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
23
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|