@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,783 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {
|
|
3
|
+
* Code,
|
|
4
|
+
* Construct,
|
|
5
|
+
* State,
|
|
6
|
+
* TokenizeContext,
|
|
7
|
+
* Tokenizer
|
|
8
|
+
* } from 'micromark-util-types'
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import {ok as assert} from 'devlop'
|
|
12
|
+
import {factorySpace} from 'micromark-factory-space'
|
|
13
|
+
import {
|
|
14
|
+
asciiAlphanumeric,
|
|
15
|
+
asciiAlpha,
|
|
16
|
+
markdownLineEndingOrSpace,
|
|
17
|
+
markdownLineEnding,
|
|
18
|
+
markdownSpace
|
|
19
|
+
} from 'micromark-util-character'
|
|
20
|
+
import {codes, constants, types} from 'micromark-util-symbol'
|
|
21
|
+
|
|
22
|
+
/** @type {Construct} */
|
|
23
|
+
export const htmlText = {name: 'htmlText', tokenize: tokenizeHtmlText}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @this {TokenizeContext}
|
|
27
|
+
* Context.
|
|
28
|
+
* @type {Tokenizer}
|
|
29
|
+
*/
|
|
30
|
+
function tokenizeHtmlText(effects, ok, nok) {
|
|
31
|
+
const self = this
|
|
32
|
+
/** @type {NonNullable<Code> | undefined} */
|
|
33
|
+
let marker
|
|
34
|
+
/** @type {number} */
|
|
35
|
+
let index
|
|
36
|
+
/** @type {State} */
|
|
37
|
+
let returnState
|
|
38
|
+
|
|
39
|
+
return start
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Start of HTML (text).
|
|
43
|
+
*
|
|
44
|
+
* ```markdown
|
|
45
|
+
* > | a <b> c
|
|
46
|
+
* ^
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @type {State}
|
|
50
|
+
*/
|
|
51
|
+
function start(code) {
|
|
52
|
+
assert(code === codes.lessThan, 'expected `<`')
|
|
53
|
+
effects.enter(types.htmlText)
|
|
54
|
+
effects.enter(types.htmlTextData)
|
|
55
|
+
effects.consume(code)
|
|
56
|
+
return open
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* After `<`, at tag name or other stuff.
|
|
61
|
+
*
|
|
62
|
+
* ```markdown
|
|
63
|
+
* > | a <b> c
|
|
64
|
+
* ^
|
|
65
|
+
* > | a <!doctype> c
|
|
66
|
+
* ^
|
|
67
|
+
* > | a <!--b--> c
|
|
68
|
+
* ^
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @type {State}
|
|
72
|
+
*/
|
|
73
|
+
function open(code) {
|
|
74
|
+
if (code === codes.exclamationMark) {
|
|
75
|
+
effects.consume(code)
|
|
76
|
+
return declarationOpen
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (code === codes.slash) {
|
|
80
|
+
effects.consume(code)
|
|
81
|
+
return tagCloseStart
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (code === codes.questionMark) {
|
|
85
|
+
effects.consume(code)
|
|
86
|
+
return instruction
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// ASCII alphabetical.
|
|
90
|
+
if (asciiAlpha(code)) {
|
|
91
|
+
effects.consume(code)
|
|
92
|
+
return tagOpen
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return nok(code)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* After `<!`, at declaration, comment, or CDATA.
|
|
100
|
+
*
|
|
101
|
+
* ```markdown
|
|
102
|
+
* > | a <!doctype> c
|
|
103
|
+
* ^
|
|
104
|
+
* > | a <!--b--> c
|
|
105
|
+
* ^
|
|
106
|
+
* > | a <![CDATA[>&<]]> c
|
|
107
|
+
* ^
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @type {State}
|
|
111
|
+
*/
|
|
112
|
+
function declarationOpen(code) {
|
|
113
|
+
if (code === codes.dash) {
|
|
114
|
+
effects.consume(code)
|
|
115
|
+
return commentOpenInside
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (code === codes.leftSquareBracket) {
|
|
119
|
+
effects.consume(code)
|
|
120
|
+
index = 0
|
|
121
|
+
return cdataOpenInside
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (asciiAlpha(code)) {
|
|
125
|
+
effects.consume(code)
|
|
126
|
+
return declaration
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return nok(code)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* In a comment, after `<!-`, at another `-`.
|
|
134
|
+
*
|
|
135
|
+
* ```markdown
|
|
136
|
+
* > | a <!--b--> c
|
|
137
|
+
* ^
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @type {State}
|
|
141
|
+
*/
|
|
142
|
+
function commentOpenInside(code) {
|
|
143
|
+
if (code === codes.dash) {
|
|
144
|
+
effects.consume(code)
|
|
145
|
+
return commentEnd
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return nok(code)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* In comment.
|
|
153
|
+
*
|
|
154
|
+
* ```markdown
|
|
155
|
+
* > | a <!--b--> c
|
|
156
|
+
* ^
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* @type {State}
|
|
160
|
+
*/
|
|
161
|
+
function comment(code) {
|
|
162
|
+
if (code === codes.eof) {
|
|
163
|
+
return nok(code)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (code === codes.dash) {
|
|
167
|
+
effects.consume(code)
|
|
168
|
+
return commentClose
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (markdownLineEnding(code)) {
|
|
172
|
+
returnState = comment
|
|
173
|
+
return lineEndingBefore(code)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
effects.consume(code)
|
|
177
|
+
return comment
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* In comment, after `-`.
|
|
182
|
+
*
|
|
183
|
+
* ```markdown
|
|
184
|
+
* > | a <!--b--> c
|
|
185
|
+
* ^
|
|
186
|
+
* ```
|
|
187
|
+
*
|
|
188
|
+
* @type {State}
|
|
189
|
+
*/
|
|
190
|
+
function commentClose(code) {
|
|
191
|
+
if (code === codes.dash) {
|
|
192
|
+
effects.consume(code)
|
|
193
|
+
return commentEnd
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return comment(code)
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* In comment, after `--`.
|
|
201
|
+
*
|
|
202
|
+
* ```markdown
|
|
203
|
+
* > | a <!--b--> c
|
|
204
|
+
* ^
|
|
205
|
+
* ```
|
|
206
|
+
*
|
|
207
|
+
* @type {State}
|
|
208
|
+
*/
|
|
209
|
+
function commentEnd(code) {
|
|
210
|
+
return code === codes.greaterThan
|
|
211
|
+
? end(code)
|
|
212
|
+
: code === codes.dash
|
|
213
|
+
? commentClose(code)
|
|
214
|
+
: comment(code)
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* After `<![`, in CDATA, expecting `CDATA[`.
|
|
219
|
+
*
|
|
220
|
+
* ```markdown
|
|
221
|
+
* > | a <![CDATA[>&<]]> b
|
|
222
|
+
* ^^^^^^
|
|
223
|
+
* ```
|
|
224
|
+
*
|
|
225
|
+
* @type {State}
|
|
226
|
+
*/
|
|
227
|
+
function cdataOpenInside(code) {
|
|
228
|
+
const value = constants.cdataOpeningString
|
|
229
|
+
|
|
230
|
+
if (code === value.charCodeAt(index++)) {
|
|
231
|
+
effects.consume(code)
|
|
232
|
+
return index === value.length ? cdata : cdataOpenInside
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return nok(code)
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* In CDATA.
|
|
240
|
+
*
|
|
241
|
+
* ```markdown
|
|
242
|
+
* > | a <![CDATA[>&<]]> b
|
|
243
|
+
* ^^^
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* @type {State}
|
|
247
|
+
*/
|
|
248
|
+
function cdata(code) {
|
|
249
|
+
if (code === codes.eof) {
|
|
250
|
+
return nok(code)
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (code === codes.rightSquareBracket) {
|
|
254
|
+
effects.consume(code)
|
|
255
|
+
return cdataClose
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (markdownLineEnding(code)) {
|
|
259
|
+
returnState = cdata
|
|
260
|
+
return lineEndingBefore(code)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
effects.consume(code)
|
|
264
|
+
return cdata
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* In CDATA, after `]`, at another `]`.
|
|
269
|
+
*
|
|
270
|
+
* ```markdown
|
|
271
|
+
* > | a <![CDATA[>&<]]> b
|
|
272
|
+
* ^
|
|
273
|
+
* ```
|
|
274
|
+
*
|
|
275
|
+
* @type {State}
|
|
276
|
+
*/
|
|
277
|
+
function cdataClose(code) {
|
|
278
|
+
if (code === codes.rightSquareBracket) {
|
|
279
|
+
effects.consume(code)
|
|
280
|
+
return cdataEnd
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return cdata(code)
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* In CDATA, after `]]`, at `>`.
|
|
288
|
+
*
|
|
289
|
+
* ```markdown
|
|
290
|
+
* > | a <![CDATA[>&<]]> b
|
|
291
|
+
* ^
|
|
292
|
+
* ```
|
|
293
|
+
*
|
|
294
|
+
* @type {State}
|
|
295
|
+
*/
|
|
296
|
+
function cdataEnd(code) {
|
|
297
|
+
if (code === codes.greaterThan) {
|
|
298
|
+
return end(code)
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (code === codes.rightSquareBracket) {
|
|
302
|
+
effects.consume(code)
|
|
303
|
+
return cdataEnd
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return cdata(code)
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* In declaration.
|
|
311
|
+
*
|
|
312
|
+
* ```markdown
|
|
313
|
+
* > | a <!b> c
|
|
314
|
+
* ^
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* @type {State}
|
|
318
|
+
*/
|
|
319
|
+
function declaration(code) {
|
|
320
|
+
if (code === codes.eof || code === codes.greaterThan) {
|
|
321
|
+
return end(code)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (markdownLineEnding(code)) {
|
|
325
|
+
returnState = declaration
|
|
326
|
+
return lineEndingBefore(code)
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
effects.consume(code)
|
|
330
|
+
return declaration
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* In instruction.
|
|
335
|
+
*
|
|
336
|
+
* ```markdown
|
|
337
|
+
* > | a <?b?> c
|
|
338
|
+
* ^
|
|
339
|
+
* ```
|
|
340
|
+
*
|
|
341
|
+
* @type {State}
|
|
342
|
+
*/
|
|
343
|
+
function instruction(code) {
|
|
344
|
+
if (code === codes.eof) {
|
|
345
|
+
return nok(code)
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (code === codes.questionMark) {
|
|
349
|
+
effects.consume(code)
|
|
350
|
+
return instructionClose
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (markdownLineEnding(code)) {
|
|
354
|
+
returnState = instruction
|
|
355
|
+
return lineEndingBefore(code)
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
effects.consume(code)
|
|
359
|
+
return instruction
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* In instruction, after `?`, at `>`.
|
|
364
|
+
*
|
|
365
|
+
* ```markdown
|
|
366
|
+
* > | a <?b?> c
|
|
367
|
+
* ^
|
|
368
|
+
* ```
|
|
369
|
+
*
|
|
370
|
+
* @type {State}
|
|
371
|
+
*/
|
|
372
|
+
function instructionClose(code) {
|
|
373
|
+
return code === codes.greaterThan ? end(code) : instruction(code)
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* After `</`, in closing tag, at tag name.
|
|
378
|
+
*
|
|
379
|
+
* ```markdown
|
|
380
|
+
* > | a </b> c
|
|
381
|
+
* ^
|
|
382
|
+
* ```
|
|
383
|
+
*
|
|
384
|
+
* @type {State}
|
|
385
|
+
*/
|
|
386
|
+
function tagCloseStart(code) {
|
|
387
|
+
// ASCII alphabetical.
|
|
388
|
+
if (asciiAlpha(code)) {
|
|
389
|
+
effects.consume(code)
|
|
390
|
+
return tagClose
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return nok(code)
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* After `</x`, in a tag name.
|
|
398
|
+
*
|
|
399
|
+
* ```markdown
|
|
400
|
+
* > | a </b> c
|
|
401
|
+
* ^
|
|
402
|
+
* ```
|
|
403
|
+
*
|
|
404
|
+
* @type {State}
|
|
405
|
+
*/
|
|
406
|
+
function tagClose(code) {
|
|
407
|
+
// ASCII alphanumerical and `-`.
|
|
408
|
+
if (code === codes.dash || asciiAlphanumeric(code)) {
|
|
409
|
+
effects.consume(code)
|
|
410
|
+
return tagClose
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return tagCloseBetween(code)
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* In closing tag, after tag name.
|
|
418
|
+
*
|
|
419
|
+
* ```markdown
|
|
420
|
+
* > | a </b> c
|
|
421
|
+
* ^
|
|
422
|
+
* ```
|
|
423
|
+
*
|
|
424
|
+
* @type {State}
|
|
425
|
+
*/
|
|
426
|
+
function tagCloseBetween(code) {
|
|
427
|
+
if (markdownLineEnding(code)) {
|
|
428
|
+
returnState = tagCloseBetween
|
|
429
|
+
return lineEndingBefore(code)
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (markdownSpace(code)) {
|
|
433
|
+
effects.consume(code)
|
|
434
|
+
return tagCloseBetween
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
return end(code)
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* After `<x`, in opening tag name.
|
|
442
|
+
*
|
|
443
|
+
* ```markdown
|
|
444
|
+
* > | a <b> c
|
|
445
|
+
* ^
|
|
446
|
+
* ```
|
|
447
|
+
*
|
|
448
|
+
* @type {State}
|
|
449
|
+
*/
|
|
450
|
+
function tagOpen(code) {
|
|
451
|
+
// ASCII alphanumerical and `-`.
|
|
452
|
+
if (code === codes.dash || asciiAlphanumeric(code)) {
|
|
453
|
+
effects.consume(code)
|
|
454
|
+
return tagOpen
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (
|
|
458
|
+
code === codes.slash ||
|
|
459
|
+
code === codes.greaterThan ||
|
|
460
|
+
markdownLineEndingOrSpace(code)
|
|
461
|
+
) {
|
|
462
|
+
return tagOpenBetween(code)
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
return nok(code)
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* In opening tag, after tag name.
|
|
470
|
+
*
|
|
471
|
+
* ```markdown
|
|
472
|
+
* > | a <b> c
|
|
473
|
+
* ^
|
|
474
|
+
* ```
|
|
475
|
+
*
|
|
476
|
+
* @type {State}
|
|
477
|
+
*/
|
|
478
|
+
function tagOpenBetween(code) {
|
|
479
|
+
if (code === codes.slash) {
|
|
480
|
+
effects.consume(code)
|
|
481
|
+
return end
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// ASCII alphabetical and `:` and `_`.
|
|
485
|
+
if (code === codes.colon || code === codes.underscore || asciiAlpha(code)) {
|
|
486
|
+
effects.consume(code)
|
|
487
|
+
return tagOpenAttributeName
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if (markdownLineEnding(code)) {
|
|
491
|
+
returnState = tagOpenBetween
|
|
492
|
+
return lineEndingBefore(code)
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (markdownSpace(code)) {
|
|
496
|
+
effects.consume(code)
|
|
497
|
+
return tagOpenBetween
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
return end(code)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* In attribute name.
|
|
505
|
+
*
|
|
506
|
+
* ```markdown
|
|
507
|
+
* > | a <b c> d
|
|
508
|
+
* ^
|
|
509
|
+
* ```
|
|
510
|
+
*
|
|
511
|
+
* @type {State}
|
|
512
|
+
*/
|
|
513
|
+
function tagOpenAttributeName(code) {
|
|
514
|
+
// ASCII alphabetical and `-`, `.`, `:`, and `_`.
|
|
515
|
+
if (
|
|
516
|
+
code === codes.dash ||
|
|
517
|
+
code === codes.dot ||
|
|
518
|
+
code === codes.colon ||
|
|
519
|
+
code === codes.underscore ||
|
|
520
|
+
asciiAlphanumeric(code)
|
|
521
|
+
) {
|
|
522
|
+
effects.consume(code)
|
|
523
|
+
return tagOpenAttributeName
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
return tagOpenAttributeNameAfter(code)
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* After attribute name, before initializer, the end of the tag, or
|
|
531
|
+
* whitespace.
|
|
532
|
+
*
|
|
533
|
+
* ```markdown
|
|
534
|
+
* > | a <b c> d
|
|
535
|
+
* ^
|
|
536
|
+
* ```
|
|
537
|
+
*
|
|
538
|
+
* @type {State}
|
|
539
|
+
*/
|
|
540
|
+
function tagOpenAttributeNameAfter(code) {
|
|
541
|
+
if (code === codes.equalsTo) {
|
|
542
|
+
effects.consume(code)
|
|
543
|
+
return tagOpenAttributeValueBefore
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (markdownLineEnding(code)) {
|
|
547
|
+
returnState = tagOpenAttributeNameAfter
|
|
548
|
+
return lineEndingBefore(code)
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
if (markdownSpace(code)) {
|
|
552
|
+
effects.consume(code)
|
|
553
|
+
return tagOpenAttributeNameAfter
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
return tagOpenBetween(code)
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Before unquoted, double quoted, or single quoted attribute value, allowing
|
|
561
|
+
* whitespace.
|
|
562
|
+
*
|
|
563
|
+
* ```markdown
|
|
564
|
+
* > | a <b c=d> e
|
|
565
|
+
* ^
|
|
566
|
+
* ```
|
|
567
|
+
*
|
|
568
|
+
* @type {State}
|
|
569
|
+
*/
|
|
570
|
+
function tagOpenAttributeValueBefore(code) {
|
|
571
|
+
if (
|
|
572
|
+
code === codes.eof ||
|
|
573
|
+
code === codes.lessThan ||
|
|
574
|
+
code === codes.equalsTo ||
|
|
575
|
+
code === codes.greaterThan ||
|
|
576
|
+
code === codes.graveAccent
|
|
577
|
+
) {
|
|
578
|
+
return nok(code)
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (code === codes.quotationMark || code === codes.apostrophe) {
|
|
582
|
+
effects.consume(code)
|
|
583
|
+
marker = code
|
|
584
|
+
return tagOpenAttributeValueQuoted
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (markdownLineEnding(code)) {
|
|
588
|
+
returnState = tagOpenAttributeValueBefore
|
|
589
|
+
return lineEndingBefore(code)
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
if (markdownSpace(code)) {
|
|
593
|
+
effects.consume(code)
|
|
594
|
+
return tagOpenAttributeValueBefore
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
effects.consume(code)
|
|
598
|
+
return tagOpenAttributeValueUnquoted
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* In double or single quoted attribute value.
|
|
603
|
+
*
|
|
604
|
+
* ```markdown
|
|
605
|
+
* > | a <b c="d"> e
|
|
606
|
+
* ^
|
|
607
|
+
* ```
|
|
608
|
+
*
|
|
609
|
+
* @type {State}
|
|
610
|
+
*/
|
|
611
|
+
function tagOpenAttributeValueQuoted(code) {
|
|
612
|
+
if (code === marker) {
|
|
613
|
+
effects.consume(code)
|
|
614
|
+
marker = undefined
|
|
615
|
+
return tagOpenAttributeValueQuotedAfter
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (code === codes.eof) {
|
|
619
|
+
return nok(code)
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
if (markdownLineEnding(code)) {
|
|
623
|
+
returnState = tagOpenAttributeValueQuoted
|
|
624
|
+
return lineEndingBefore(code)
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
effects.consume(code)
|
|
628
|
+
return tagOpenAttributeValueQuoted
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* In unquoted attribute value.
|
|
633
|
+
*
|
|
634
|
+
* ```markdown
|
|
635
|
+
* > | a <b c=d> e
|
|
636
|
+
* ^
|
|
637
|
+
* ```
|
|
638
|
+
*
|
|
639
|
+
* @type {State}
|
|
640
|
+
*/
|
|
641
|
+
function tagOpenAttributeValueUnquoted(code) {
|
|
642
|
+
if (
|
|
643
|
+
code === codes.eof ||
|
|
644
|
+
code === codes.quotationMark ||
|
|
645
|
+
code === codes.apostrophe ||
|
|
646
|
+
code === codes.lessThan ||
|
|
647
|
+
code === codes.equalsTo ||
|
|
648
|
+
code === codes.graveAccent
|
|
649
|
+
) {
|
|
650
|
+
return nok(code)
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
if (
|
|
654
|
+
code === codes.slash ||
|
|
655
|
+
code === codes.greaterThan ||
|
|
656
|
+
markdownLineEndingOrSpace(code)
|
|
657
|
+
) {
|
|
658
|
+
return tagOpenBetween(code)
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
effects.consume(code)
|
|
662
|
+
return tagOpenAttributeValueUnquoted
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* After double or single quoted attribute value, before whitespace or the end
|
|
667
|
+
* of the tag.
|
|
668
|
+
*
|
|
669
|
+
* ```markdown
|
|
670
|
+
* > | a <b c="d"> e
|
|
671
|
+
* ^
|
|
672
|
+
* ```
|
|
673
|
+
*
|
|
674
|
+
* @type {State}
|
|
675
|
+
*/
|
|
676
|
+
function tagOpenAttributeValueQuotedAfter(code) {
|
|
677
|
+
if (
|
|
678
|
+
code === codes.slash ||
|
|
679
|
+
code === codes.greaterThan ||
|
|
680
|
+
markdownLineEndingOrSpace(code)
|
|
681
|
+
) {
|
|
682
|
+
return tagOpenBetween(code)
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
return nok(code)
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* In certain circumstances of a tag where only an `>` is allowed.
|
|
690
|
+
*
|
|
691
|
+
* ```markdown
|
|
692
|
+
* > | a <b c="d"> e
|
|
693
|
+
* ^
|
|
694
|
+
* ```
|
|
695
|
+
*
|
|
696
|
+
* @type {State}
|
|
697
|
+
*/
|
|
698
|
+
function end(code) {
|
|
699
|
+
if (code === codes.greaterThan) {
|
|
700
|
+
effects.consume(code)
|
|
701
|
+
effects.exit(types.htmlTextData)
|
|
702
|
+
effects.exit(types.htmlText)
|
|
703
|
+
return ok
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
return nok(code)
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* At eol.
|
|
711
|
+
*
|
|
712
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
713
|
+
* > empty tokens.
|
|
714
|
+
*
|
|
715
|
+
* ```markdown
|
|
716
|
+
* > | a <!--a
|
|
717
|
+
* ^
|
|
718
|
+
* | b-->
|
|
719
|
+
* ```
|
|
720
|
+
*
|
|
721
|
+
* @type {State}
|
|
722
|
+
*/
|
|
723
|
+
function lineEndingBefore(code) {
|
|
724
|
+
assert(returnState, 'expected return state')
|
|
725
|
+
assert(markdownLineEnding(code), 'expected eol')
|
|
726
|
+
effects.exit(types.htmlTextData)
|
|
727
|
+
effects.enter(types.lineEnding)
|
|
728
|
+
effects.consume(code)
|
|
729
|
+
effects.exit(types.lineEnding)
|
|
730
|
+
return lineEndingAfter
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* After eol, at optional whitespace.
|
|
735
|
+
*
|
|
736
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
737
|
+
* > empty tokens.
|
|
738
|
+
*
|
|
739
|
+
* ```markdown
|
|
740
|
+
* | a <!--a
|
|
741
|
+
* > | b-->
|
|
742
|
+
* ^
|
|
743
|
+
* ```
|
|
744
|
+
*
|
|
745
|
+
* @type {State}
|
|
746
|
+
*/
|
|
747
|
+
function lineEndingAfter(code) {
|
|
748
|
+
// Always populated by defaults.
|
|
749
|
+
assert(
|
|
750
|
+
self.parser.constructs.disable.null,
|
|
751
|
+
'expected `disable.null` to be populated'
|
|
752
|
+
)
|
|
753
|
+
return markdownSpace(code)
|
|
754
|
+
? factorySpace(
|
|
755
|
+
effects,
|
|
756
|
+
lineEndingAfterPrefix,
|
|
757
|
+
types.linePrefix,
|
|
758
|
+
self.parser.constructs.disable.null.includes('codeIndented')
|
|
759
|
+
? undefined
|
|
760
|
+
: constants.tabSize
|
|
761
|
+
)(code)
|
|
762
|
+
: lineEndingAfterPrefix(code)
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* After eol, after optional whitespace.
|
|
767
|
+
*
|
|
768
|
+
* > 👉 **Note**: we can’t have blank lines in text, so no need to worry about
|
|
769
|
+
* > empty tokens.
|
|
770
|
+
*
|
|
771
|
+
* ```markdown
|
|
772
|
+
* | a <!--a
|
|
773
|
+
* > | b-->
|
|
774
|
+
* ^
|
|
775
|
+
* ```
|
|
776
|
+
*
|
|
777
|
+
* @type {State}
|
|
778
|
+
*/
|
|
779
|
+
function lineEndingAfterPrefix(code) {
|
|
780
|
+
effects.enter(types.htmlTextData)
|
|
781
|
+
return returnState(code)
|
|
782
|
+
}
|
|
783
|
+
}
|