@prismicio/client 7.7.4 → 7.7.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +63 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +63 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +12 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js +12 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +127 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +127 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +23 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +1 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js +23 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +1 -0
- package/dist/_node_modules/bail/index.cjs +9 -0
- package/dist/_node_modules/bail/index.cjs.map +1 -0
- package/dist/_node_modules/bail/index.js +9 -0
- package/dist/_node_modules/bail/index.js.map +1 -0
- package/dist/_node_modules/bcp-47-match/index.cjs +74 -0
- package/dist/_node_modules/bcp-47-match/index.cjs.map +1 -0
- package/dist/_node_modules/bcp-47-match/index.js +74 -0
- package/dist/_node_modules/bcp-47-match/index.js.map +1 -0
- package/dist/_node_modules/boolbase/index.cjs +13 -0
- package/dist/_node_modules/boolbase/index.cjs.map +1 -0
- package/dist/_node_modules/boolbase/index.js +14 -0
- package/dist/_node_modules/boolbase/index.js.map +1 -0
- package/dist/_node_modules/ccount/index.cjs +17 -0
- package/dist/_node_modules/ccount/index.cjs.map +1 -0
- package/dist/_node_modules/ccount/index.js +17 -0
- package/dist/_node_modules/ccount/index.js.map +1 -0
- package/dist/_node_modules/character-entities/index.cjs +2131 -0
- package/dist/_node_modules/character-entities/index.cjs.map +1 -0
- package/dist/_node_modules/character-entities/index.js +2131 -0
- package/dist/_node_modules/character-entities/index.js.map +1 -0
- package/dist/_node_modules/character-entities-html4/index.cjs +258 -0
- package/dist/_node_modules/character-entities-html4/index.cjs.map +1 -0
- package/dist/_node_modules/character-entities-html4/index.js +258 -0
- package/dist/_node_modules/character-entities-html4/index.js.map +1 -0
- package/dist/_node_modules/character-entities-legacy/index.cjs +112 -0
- package/dist/_node_modules/character-entities-legacy/index.cjs.map +1 -0
- package/dist/_node_modules/character-entities-legacy/index.js +112 -0
- package/dist/_node_modules/character-entities-legacy/index.js.map +1 -0
- package/dist/_node_modules/comma-separated-tokens/index.cjs +32 -0
- package/dist/_node_modules/comma-separated-tokens/index.cjs.map +1 -0
- package/dist/_node_modules/comma-separated-tokens/index.js +32 -0
- package/dist/_node_modules/comma-separated-tokens/index.js.map +1 -0
- package/dist/_node_modules/devlop/lib/default.cjs +6 -0
- package/dist/_node_modules/devlop/lib/default.cjs.map +1 -0
- package/dist/_node_modules/devlop/lib/default.js +6 -0
- package/dist/_node_modules/devlop/lib/default.js.map +1 -0
- package/dist/_node_modules/direction/index.cjs +12 -0
- package/dist/_node_modules/direction/index.cjs.map +1 -0
- package/dist/_node_modules/direction/index.js +12 -0
- package/dist/_node_modules/direction/index.js.map +1 -0
- package/dist/_node_modules/extend/index.cjs +89 -0
- package/dist/_node_modules/extend/index.cjs.map +1 -0
- package/dist/_node_modules/extend/index.js +90 -0
- package/dist/_node_modules/extend/index.js.map +1 -0
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs +14 -0
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-embedded/lib/index.js +14 -0
- package/dist/_node_modules/hast-util-embedded/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +317 -0
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +1 -0
- package/dist/_node_modules/hast-util-from-html/lib/errors.js +317 -0
- package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +1 -0
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs +96 -0
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-from-html/lib/index.js +96 -0
- package/dist/_node_modules/hast-util-from-html/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +187 -0
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js +187 -0
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs +9 -0
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-has-property/lib/index.js +9 -0
- package/dist/_node_modules/hast-util-has-property/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs +102 -0
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-is-element/lib/index.js +102 -0
- package/dist/_node_modules/hast-util-is-element/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +40 -0
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js +40 -0
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs +67 -0
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/attribute.js +67 -0
- package/dist/_node_modules/hast-util-select/lib/attribute.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs +12 -0
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/class-name.js +12 -0
- package/dist/_node_modules/hast-util-select/lib/class-name.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +79 -0
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/enter-state.js +79 -0
- package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/id.cjs +7 -0
- package/dist/_node_modules/hast-util-select/lib/id.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/id.js +7 -0
- package/dist/_node_modules/hast-util-select/lib/id.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/index.cjs +38 -0
- package/dist/_node_modules/hast-util-select/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/index.js +38 -0
- package/dist/_node_modules/hast-util-select/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/name.cjs +7 -0
- package/dist/_node_modules/hast-util-select/lib/name.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/name.js +7 -0
- package/dist/_node_modules/hast-util-select/lib/name.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/parse.cjs +12 -0
- package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/parse.js +12 -0
- package/dist/_node_modules/hast-util-select/lib/parse.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +231 -0
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/pseudo.js +231 -0
- package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/test.cjs +27 -0
- package/dist/_node_modules/hast-util-select/lib/test.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/test.js +27 -0
- package/dist/_node_modules/hast-util-select/lib/test.js.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/walk.cjs +132 -0
- package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +1 -0
- package/dist/_node_modules/hast-util-select/lib/walk.js +132 -0
- package/dist/_node_modules/hast-util-select/lib/walk.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +24 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +24 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +7 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +7 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +137 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +137 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +26 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +26 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +8 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +8 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +7 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +7 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +14 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +14 -0
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs +62 -0
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/index.js +62 -0
- package/dist/_node_modules/hast-util-to-html/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +92 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +92 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +11 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +11 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +52 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +52 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +24 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +24 -0
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +1 -0
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs +24 -0
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-to-string/lib/index.js +24 -0
- package/dist/_node_modules/hast-util-to-string/lib/index.js.map +1 -0
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +11 -0
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hast-util-whitespace/lib/index.js +11 -0
- package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +1 -0
- package/dist/_node_modules/hastscript/lib/create-h.cjs +159 -0
- package/dist/_node_modules/hastscript/lib/create-h.cjs.map +1 -0
- package/dist/_node_modules/hastscript/lib/create-h.js +159 -0
- package/dist/_node_modules/hastscript/lib/create-h.js.map +1 -0
- package/dist/_node_modules/hastscript/lib/index.cjs +10 -0
- package/dist/_node_modules/hastscript/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hastscript/lib/index.js +10 -0
- package/dist/_node_modules/hastscript/lib/index.js.map +1 -0
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +45 -0
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +1 -0
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +45 -0
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +1 -0
- package/dist/_node_modules/html-void-elements/index.cjs +26 -0
- package/dist/_node_modules/html-void-elements/index.cjs.map +1 -0
- package/dist/_node_modules/html-void-elements/index.js +26 -0
- package/dist/_node_modules/html-void-elements/index.js.map +1 -0
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +720 -0
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +720 -0
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +116 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +116 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +9 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +9 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +25 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +25 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +42 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +42 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +12 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +12 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +20 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +20 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +17 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +17 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +60 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +60 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +16 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +16 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +25 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +25 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +19 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +19 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +65 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +65 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +27 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +27 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +9 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +9 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +15 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +15 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +36 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +36 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +40 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +40 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +10 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +10 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +14 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +16 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js +16 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +30 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +30 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +149 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js +149 -0
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +1 -0
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +39 -0
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +1 -0
- package/dist/_node_modules/mdast-util-to-string/lib/index.js +39 -0
- package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +1 -0
- package/dist/_node_modules/micromark/lib/constructs.cjs +94 -0
- package/dist/_node_modules/micromark/lib/constructs.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/constructs.js +94 -0
- package/dist/_node_modules/micromark/lib/constructs.js.map +1 -0
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +316 -0
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/create-tokenizer.js +316 -0
- package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/content.cjs +58 -0
- package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/content.js +58 -0
- package/dist/_node_modules/micromark/lib/initialize/content.js.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/document.cjs +212 -0
- package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/document.js +212 -0
- package/dist/_node_modules/micromark/lib/initialize/document.js.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs +55 -0
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/flow.js +55 -0
- package/dist/_node_modules/micromark/lib/initialize/flow.js.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/text.cjs +143 -0
- package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/initialize/text.js +143 -0
- package/dist/_node_modules/micromark/lib/initialize/text.js.map +1 -0
- package/dist/_node_modules/micromark/lib/parse.cjs +35 -0
- package/dist/_node_modules/micromark/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/parse.js +35 -0
- package/dist/_node_modules/micromark/lib/parse.js.map +1 -0
- package/dist/_node_modules/micromark/lib/postprocess.cjs +10 -0
- package/dist/_node_modules/micromark/lib/postprocess.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/postprocess.js +10 -0
- package/dist/_node_modules/micromark/lib/postprocess.js.map +1 -0
- package/dist/_node_modules/micromark/lib/preprocess.cjs +81 -0
- package/dist/_node_modules/micromark/lib/preprocess.cjs.map +1 -0
- package/dist/_node_modules/micromark/lib/preprocess.js +81 -0
- package/dist/_node_modules/micromark/lib/preprocess.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +116 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +116 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +104 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +104 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +19 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +19 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +62 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +62 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +29 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +29 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +69 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +69 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +187 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +187 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +68 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +68 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +117 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +117 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +76 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js +76 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +95 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +95 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +24 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +24 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +96 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +96 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +384 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +384 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +310 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +310 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +219 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +219 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +34 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +34 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +25 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +25 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +18 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +18 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +136 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js +136 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +90 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +90 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +43 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +1 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +43 -0
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +1 -0
- package/dist/_node_modules/micromark-factory-destination/index.cjs +95 -0
- package/dist/_node_modules/micromark-factory-destination/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-factory-destination/index.js +95 -0
- package/dist/_node_modules/micromark-factory-destination/index.js.map +1 -0
- package/dist/_node_modules/micromark-factory-label/index.cjs +64 -0
- package/dist/_node_modules/micromark-factory-label/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-factory-label/index.js +64 -0
- package/dist/_node_modules/micromark-factory-label/index.js.map +1 -0
- package/dist/_node_modules/micromark-factory-space/index.cjs +25 -0
- package/dist/_node_modules/micromark-factory-space/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-factory-space/index.js +25 -0
- package/dist/_node_modules/micromark-factory-space/index.js.map +1 -0
- package/dist/_node_modules/micromark-factory-title/index.cjs +66 -0
- package/dist/_node_modules/micromark-factory-title/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-factory-title/index.js +66 -0
- package/dist/_node_modules/micromark-factory-title/index.js.map +1 -0
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs +27 -0
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-factory-whitespace/index.js +27 -0
- package/dist/_node_modules/micromark-factory-whitespace/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-character/index.cjs +45 -0
- package/dist/_node_modules/micromark-util-character/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-character/index.js +45 -0
- package/dist/_node_modules/micromark-util-character/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-chunked/index.cjs +37 -0
- package/dist/_node_modules/micromark-util-chunked/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-chunked/index.js +37 -0
- package/dist/_node_modules/micromark-util-chunked/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-classify-character/index.cjs +13 -0
- package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-classify-character/index.js +13 -0
- package/dist/_node_modules/micromark-util-classify-character/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +42 -0
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-combine-extensions/index.js +42 -0
- package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +20 -0
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +20 -0
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-decode-string/index.cjs +22 -0
- package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-decode-string/index.js +22 -0
- package/dist/_node_modules/micromark-util-decode-string/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +70 -0
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-html-tag-name/index.js +70 -0
- package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +7 -0
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js +7 -0
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs +16 -0
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-resolve-all/index.js +16 -0
- package/dist/_node_modules/micromark-util-resolve-all/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +42 -0
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js +42 -0
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs +149 -0
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-subtokenize/index.js +149 -0
- package/dist/_node_modules/micromark-util-subtokenize/index.js.map +1 -0
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +195 -0
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +1 -0
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +195 -0
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs +20 -0
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/compile.js +20 -0
- package/dist/_node_modules/nth-check/lib/esm/compile.js.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/index.cjs +11 -0
- package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/index.js +11 -0
- package/dist/_node_modules/nth-check/lib/esm/index.js.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs +59 -0
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +1 -0
- package/dist/_node_modules/nth-check/lib/esm/parse.js +59 -0
- package/dist/_node_modules/nth-check/lib/esm/parse.js.map +1 -0
- package/dist/_node_modules/property-information/index.cjs +14 -0
- package/dist/_node_modules/property-information/index.cjs.map +1 -0
- package/dist/_node_modules/property-information/index.js +14 -0
- package/dist/_node_modules/property-information/index.js.map +1 -0
- package/dist/_node_modules/property-information/lib/aria.cjs +62 -0
- package/dist/_node_modules/property-information/lib/aria.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/aria.js +62 -0
- package/dist/_node_modules/property-information/lib/aria.js.map +1 -0
- package/dist/_node_modules/property-information/lib/find.cjs +41 -0
- package/dist/_node_modules/property-information/lib/find.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/find.js +41 -0
- package/dist/_node_modules/property-information/lib/find.js.map +1 -0
- package/dist/_node_modules/property-information/lib/html.cjs +369 -0
- package/dist/_node_modules/property-information/lib/html.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/html.js +369 -0
- package/dist/_node_modules/property-information/lib/html.js.map +1 -0
- package/dist/_node_modules/property-information/lib/normalize.cjs +7 -0
- package/dist/_node_modules/property-information/lib/normalize.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/normalize.js +7 -0
- package/dist/_node_modules/property-information/lib/normalize.js.map +1 -0
- package/dist/_node_modules/property-information/lib/svg.cjs +567 -0
- package/dist/_node_modules/property-information/lib/svg.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/svg.js +567 -0
- package/dist/_node_modules/property-information/lib/svg.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +8 -0
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +8 -0
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +7 -0
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +7 -0
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/create.cjs +31 -0
- package/dist/_node_modules/property-information/lib/util/create.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/create.js +31 -0
- package/dist/_node_modules/property-information/lib/util/create.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs +33 -0
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/defined-info.js +33 -0
- package/dist/_node_modules/property-information/lib/util/defined-info.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/info.cjs +25 -0
- package/dist/_node_modules/property-information/lib/util/info.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/info.js +25 -0
- package/dist/_node_modules/property-information/lib/util/info.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/merge.cjs +15 -0
- package/dist/_node_modules/property-information/lib/util/merge.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/merge.js +15 -0
- package/dist/_node_modules/property-information/lib/util/merge.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/schema.cjs +22 -0
- package/dist/_node_modules/property-information/lib/util/schema.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/schema.js +22 -0
- package/dist/_node_modules/property-information/lib/util/schema.js.map +1 -0
- package/dist/_node_modules/property-information/lib/util/types.cjs +21 -0
- package/dist/_node_modules/property-information/lib/util/types.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/util/types.js +21 -0
- package/dist/_node_modules/property-information/lib/util/types.js.map +1 -0
- package/dist/_node_modules/property-information/lib/xlink.cjs +20 -0
- package/dist/_node_modules/property-information/lib/xlink.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/xlink.js +20 -0
- package/dist/_node_modules/property-information/lib/xlink.js.map +1 -0
- package/dist/_node_modules/property-information/lib/xml.cjs +12 -0
- package/dist/_node_modules/property-information/lib/xml.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/xml.js +12 -0
- package/dist/_node_modules/property-information/lib/xml.js.map +1 -0
- package/dist/_node_modules/property-information/lib/xmlns.cjs +12 -0
- package/dist/_node_modules/property-information/lib/xmlns.cjs.map +1 -0
- package/dist/_node_modules/property-information/lib/xmlns.js +12 -0
- package/dist/_node_modules/property-information/lib/xmlns.js.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +122 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +122 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +11 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +11 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +169 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +170 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +24 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +1 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +24 -0
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +1 -0
- package/dist/_node_modules/rehype-parse/lib/index.cjs +21 -0
- package/dist/_node_modules/rehype-parse/lib/index.cjs.map +1 -0
- package/dist/_node_modules/rehype-parse/lib/index.js +22 -0
- package/dist/_node_modules/rehype-parse/lib/index.js.map +1 -0
- package/dist/_node_modules/remark-parse/lib/index.cjs +19 -0
- package/dist/_node_modules/remark-parse/lib/index.cjs.map +1 -0
- package/dist/_node_modules/remark-parse/lib/index.js +20 -0
- package/dist/_node_modules/remark-parse/lib/index.js.map +1 -0
- package/dist/_node_modules/remark-rehype/lib/index.cjs +21 -0
- package/dist/_node_modules/remark-rehype/lib/index.cjs.map +1 -0
- package/dist/_node_modules/remark-rehype/lib/index.js +22 -0
- package/dist/_node_modules/remark-rehype/lib/index.js.map +1 -0
- package/dist/_node_modules/space-separated-tokens/index.cjs +12 -0
- package/dist/_node_modules/space-separated-tokens/index.cjs.map +1 -0
- package/dist/_node_modules/space-separated-tokens/index.js +12 -0
- package/dist/_node_modules/space-separated-tokens/index.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +14 -0
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +14 -0
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/core.cjs +52 -0
- package/dist/_node_modules/stringify-entities/lib/core.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/core.js +52 -0
- package/dist/_node_modules/stringify-entities/lib/core.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/index.cjs +9 -0
- package/dist/_node_modules/stringify-entities/lib/index.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/index.js +9 -0
- package/dist/_node_modules/stringify-entities/lib/index.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +26 -0
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +26 -0
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +9 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +9 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +9 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +9 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +28 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +1 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js +28 -0
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +1 -0
- package/dist/_node_modules/trim-lines/index.cjs +42 -0
- package/dist/_node_modules/trim-lines/index.cjs.map +1 -0
- package/dist/_node_modules/trim-lines/index.js +42 -0
- package/dist/_node_modules/trim-lines/index.js.map +1 -0
- package/dist/_node_modules/trough/lib/index.cjs +87 -0
- package/dist/_node_modules/trough/lib/index.cjs.map +1 -0
- package/dist/_node_modules/trough/lib/index.js +87 -0
- package/dist/_node_modules/trough/lib/index.js.map +1 -0
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +10 -0
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +11 -0
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/_node_modules/unified/lib/callable-instance.cjs +31 -0
- package/dist/_node_modules/unified/lib/callable-instance.cjs.map +1 -0
- package/dist/_node_modules/unified/lib/callable-instance.js +31 -0
- package/dist/_node_modules/unified/lib/callable-instance.js.map +1 -0
- package/dist/_node_modules/unified/lib/index.cjs +637 -0
- package/dist/_node_modules/unified/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unified/lib/index.js +637 -0
- package/dist/_node_modules/unified/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs +94 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.js +94 -0
- package/dist/_node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-position/lib/index.cjs +28 -0
- package/dist/_node_modules/unist-util-position/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-position/lib/index.js +28 -0
- package/dist/_node_modules/unist-util-position/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-remove/lib/index.cjs +39 -0
- package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-remove/lib/index.js +39 -0
- package/dist/_node_modules/unist-util-remove/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +28 -0
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js +28 -0
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +28 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js +29 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +7 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js +7 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +84 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +84 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/_node_modules/vfile/lib/index.cjs +463 -0
- package/dist/_node_modules/vfile/lib/index.cjs.map +1 -0
- package/dist/_node_modules/vfile/lib/index.js +463 -0
- package/dist/_node_modules/vfile/lib/index.js.map +1 -0
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs +215 -0
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +1 -0
- package/dist/_node_modules/vfile/lib/minpath.browser.js +215 -0
- package/dist/_node_modules/vfile/lib/minpath.browser.js.map +1 -0
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs +8 -0
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +1 -0
- package/dist/_node_modules/vfile/lib/minproc.browser.js +8 -0
- package/dist/_node_modules/vfile/lib/minproc.browser.js.map +1 -0
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs +47 -0
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +1 -0
- package/dist/_node_modules/vfile/lib/minurl.browser.js +47 -0
- package/dist/_node_modules/vfile/lib/minurl.browser.js.map +1 -0
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs +10 -0
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +1 -0
- package/dist/_node_modules/vfile/lib/minurl.shared.js +10 -0
- package/dist/_node_modules/vfile/lib/minurl.shared.js.map +1 -0
- package/dist/_node_modules/vfile-location/lib/index.cjs +50 -0
- package/dist/_node_modules/vfile-location/lib/index.cjs.map +1 -0
- package/dist/_node_modules/vfile-location/lib/index.js +50 -0
- package/dist/_node_modules/vfile-location/lib/index.js.map +1 -0
- package/dist/_node_modules/vfile-message/lib/index.cjs +139 -0
- package/dist/_node_modules/vfile-message/lib/index.cjs.map +1 -0
- package/dist/_node_modules/vfile-message/lib/index.js +139 -0
- package/dist/_node_modules/vfile-message/lib/index.js.map +1 -0
- package/dist/_node_modules/web-namespaces/index.cjs +12 -0
- package/dist/_node_modules/web-namespaces/index.cjs.map +1 -0
- package/dist/_node_modules/web-namespaces/index.js +12 -0
- package/dist/_node_modules/web-namespaces/index.js.map +1 -0
- package/dist/_node_modules/zwitch/index.cjs +23 -0
- package/dist/_node_modules/zwitch/index.cjs.map +1 -0
- package/dist/_node_modules/zwitch/index.js +23 -0
- package/dist/_node_modules/zwitch/index.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/index.cjs +9 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +9 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/helpers/unstable_htmlAsRichText.cjs +3 -3
- package/dist/helpers/unstable_htmlAsRichText.cjs.map +1 -1
- package/dist/helpers/unstable_htmlAsRichText.js +2 -2
- package/dist/helpers/unstable_markdownAsRichText.cjs +4 -4
- package/dist/helpers/unstable_markdownAsRichText.cjs.map +1 -1
- package/dist/helpers/unstable_markdownAsRichText.js +3 -3
- package/dist/lib/hastSerializerHelpers.cjs +2 -2
- package/dist/lib/hastSerializerHelpers.cjs.map +1 -1
- package/dist/lib/hastSerializerHelpers.js +1 -1
- package/dist/lib/hastToRichText.cjs +5 -5
- package/dist/lib/hastToRichText.cjs.map +1 -1
- package/dist/lib/hastToRichText.js +2 -2
- package/dist/lib/hastToRichText.js.map +1 -1
- package/dist/lib/rehypeRichText.cjs +13 -12
- package/dist/lib/rehypeRichText.cjs.map +1 -1
- package/dist/lib/rehypeRichText.js +5 -4
- package/dist/lib/rehypeRichText.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +15 -13
- package/src/lib/hastToRichText.ts +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const blocks = [
|
|
2
|
+
"address",
|
|
3
|
+
// Flow content.
|
|
4
|
+
"article",
|
|
5
|
+
// Sections and headings.
|
|
6
|
+
"aside",
|
|
7
|
+
// Sections and headings.
|
|
8
|
+
"blockquote",
|
|
9
|
+
// Flow content.
|
|
10
|
+
"body",
|
|
11
|
+
// Page.
|
|
12
|
+
"br",
|
|
13
|
+
// Contribute whitespace intrinsically.
|
|
14
|
+
"caption",
|
|
15
|
+
// Similar to block.
|
|
16
|
+
"center",
|
|
17
|
+
// Flow content, legacy.
|
|
18
|
+
"col",
|
|
19
|
+
// Similar to block.
|
|
20
|
+
"colgroup",
|
|
21
|
+
// Similar to block.
|
|
22
|
+
"dd",
|
|
23
|
+
// Lists.
|
|
24
|
+
"dialog",
|
|
25
|
+
// Flow content.
|
|
26
|
+
"dir",
|
|
27
|
+
// Lists, legacy.
|
|
28
|
+
"div",
|
|
29
|
+
// Flow content.
|
|
30
|
+
"dl",
|
|
31
|
+
// Lists.
|
|
32
|
+
"dt",
|
|
33
|
+
// Lists.
|
|
34
|
+
"figcaption",
|
|
35
|
+
// Flow content.
|
|
36
|
+
"figure",
|
|
37
|
+
// Flow content.
|
|
38
|
+
"footer",
|
|
39
|
+
// Flow content.
|
|
40
|
+
"form",
|
|
41
|
+
// Flow content.
|
|
42
|
+
"h1",
|
|
43
|
+
// Sections and headings.
|
|
44
|
+
"h2",
|
|
45
|
+
// Sections and headings.
|
|
46
|
+
"h3",
|
|
47
|
+
// Sections and headings.
|
|
48
|
+
"h4",
|
|
49
|
+
// Sections and headings.
|
|
50
|
+
"h5",
|
|
51
|
+
// Sections and headings.
|
|
52
|
+
"h6",
|
|
53
|
+
// Sections and headings.
|
|
54
|
+
"head",
|
|
55
|
+
// Page.
|
|
56
|
+
"header",
|
|
57
|
+
// Flow content.
|
|
58
|
+
"hgroup",
|
|
59
|
+
// Sections and headings.
|
|
60
|
+
"hr",
|
|
61
|
+
// Flow content.
|
|
62
|
+
"html",
|
|
63
|
+
// Page.
|
|
64
|
+
"legend",
|
|
65
|
+
// Flow content.
|
|
66
|
+
"li",
|
|
67
|
+
// Block-like.
|
|
68
|
+
"li",
|
|
69
|
+
// Similar to block.
|
|
70
|
+
"listing",
|
|
71
|
+
// Flow content, legacy
|
|
72
|
+
"main",
|
|
73
|
+
// Flow content.
|
|
74
|
+
"menu",
|
|
75
|
+
// Lists.
|
|
76
|
+
"nav",
|
|
77
|
+
// Sections and headings.
|
|
78
|
+
"ol",
|
|
79
|
+
// Lists.
|
|
80
|
+
"optgroup",
|
|
81
|
+
// Similar to block.
|
|
82
|
+
"option",
|
|
83
|
+
// Similar to block.
|
|
84
|
+
"p",
|
|
85
|
+
// Flow content.
|
|
86
|
+
"plaintext",
|
|
87
|
+
// Flow content, legacy
|
|
88
|
+
"pre",
|
|
89
|
+
// Flow content.
|
|
90
|
+
"section",
|
|
91
|
+
// Sections and headings.
|
|
92
|
+
"summary",
|
|
93
|
+
// Similar to block.
|
|
94
|
+
"table",
|
|
95
|
+
// Similar to block.
|
|
96
|
+
"tbody",
|
|
97
|
+
// Similar to block.
|
|
98
|
+
"td",
|
|
99
|
+
// Block-like.
|
|
100
|
+
"td",
|
|
101
|
+
// Similar to block.
|
|
102
|
+
"tfoot",
|
|
103
|
+
// Similar to block.
|
|
104
|
+
"th",
|
|
105
|
+
// Block-like.
|
|
106
|
+
"th",
|
|
107
|
+
// Similar to block.
|
|
108
|
+
"thead",
|
|
109
|
+
// Similar to block.
|
|
110
|
+
"tr",
|
|
111
|
+
// Similar to block.
|
|
112
|
+
"ul",
|
|
113
|
+
// Lists.
|
|
114
|
+
"wbr",
|
|
115
|
+
// Contribute whitespace intrinsically.
|
|
116
|
+
"xmp"
|
|
117
|
+
// Flow content, legacy
|
|
118
|
+
];
|
|
119
|
+
export {
|
|
120
|
+
blocks
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.js","sources":["../../../../node_modules/rehype-minify-whitespace/lib/block.js"],"sourcesContent":["// See: <https://html.spec.whatwg.org/#the-css-user-agent-style-sheet-and-presentational-hints>\nexport const blocks = [\n 'address', // Flow content.\n 'article', // Sections and headings.\n 'aside', // Sections and headings.\n 'blockquote', // Flow content.\n 'body', // Page.\n 'br', // Contribute whitespace intrinsically.\n 'caption', // Similar to block.\n 'center', // Flow content, legacy.\n 'col', // Similar to block.\n 'colgroup', // Similar to block.\n 'dd', // Lists.\n 'dialog', // Flow content.\n 'dir', // Lists, legacy.\n 'div', // Flow content.\n 'dl', // Lists.\n 'dt', // Lists.\n 'figcaption', // Flow content.\n 'figure', // Flow content.\n 'footer', // Flow content.\n 'form', // Flow content.\n 'h1', // Sections and headings.\n 'h2', // Sections and headings.\n 'h3', // Sections and headings.\n 'h4', // Sections and headings.\n 'h5', // Sections and headings.\n 'h6', // Sections and headings.\n 'head', // Page.\n 'header', // Flow content.\n 'hgroup', // Sections and headings.\n 'hr', // Flow content.\n 'html', // Page.\n 'legend', // Flow content.\n 'li', // Block-like.\n 'li', // Similar to block.\n 'listing', // Flow content, legacy\n 'main', // Flow content.\n 'menu', // Lists.\n 'nav', // Sections and headings.\n 'ol', // Lists.\n 'optgroup', // Similar to block.\n 'option', // Similar to block.\n 'p', // Flow content.\n 'plaintext', // Flow content, legacy\n 'pre', // Flow content.\n 'section', // Sections and headings.\n 'summary', // Similar to block.\n 'table', // Similar to block.\n 'tbody', // Similar to block.\n 'td', // Block-like.\n 'td', // Similar to block.\n 'tfoot', // Similar to block.\n 'th', // Block-like.\n 'th', // Similar to block.\n 'thead', // Similar to block.\n 'tr', // Similar to block.\n 'ul', // Lists.\n 'wbr', // Contribute whitespace intrinsically.\n 'xmp' // Flow content, legacy\n]\n"],"names":[],"mappings":"AACY,MAAC,SAAS;AAAA,EACpB;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.cjs","sources":["../../../../node_modules/rehype-minify-whitespace/lib/content.js"],"sourcesContent":["export const content = [\n // Form.\n 'button',\n 'input',\n 'select',\n 'textarea'\n]\n"],"names":[],"mappings":";;AAAY,MAAC,UAAU;AAAA;AAAA,EAErB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sources":["../../../../node_modules/rehype-minify-whitespace/lib/content.js"],"sourcesContent":["export const content = [\n // Form.\n 'button',\n 'input',\n 'select',\n 'textarea'\n]\n"],"names":[],"mappings":"AAAY,MAAC,UAAU;AAAA;AAAA,EAErB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const block = require("./block.cjs");
|
|
3
|
+
const content$1 = require("./content.cjs");
|
|
4
|
+
const skippable$1 = require("./skippable.cjs");
|
|
5
|
+
const index = require("../../unist-util-is/lib/index.cjs");
|
|
6
|
+
const index$1 = require("../../hast-util-whitespace/lib/index.cjs");
|
|
7
|
+
const index$2 = require("../../hast-util-embedded/lib/index.cjs");
|
|
8
|
+
const index$3 = require("../../hast-util-is-element/lib/index.cjs");
|
|
9
|
+
const emptyOptions = {};
|
|
10
|
+
const ignorableNode = index.convert(["doctype", "comment"]);
|
|
11
|
+
function rehypeMinifyWhitespace(options) {
|
|
12
|
+
const settings = options || emptyOptions;
|
|
13
|
+
const collapse = collapseFactory(
|
|
14
|
+
settings.newlines ? replaceNewlines : replaceWhitespace
|
|
15
|
+
);
|
|
16
|
+
return function(tree) {
|
|
17
|
+
minify(tree, { collapse, whitespace: "normal" });
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function minify(node, state) {
|
|
21
|
+
if ("children" in node) {
|
|
22
|
+
const settings = { ...state };
|
|
23
|
+
if (node.type === "root" || blocklike(node)) {
|
|
24
|
+
settings.before = true;
|
|
25
|
+
settings.after = true;
|
|
26
|
+
}
|
|
27
|
+
settings.whitespace = inferWhiteSpace(node, state);
|
|
28
|
+
return all(node, settings);
|
|
29
|
+
}
|
|
30
|
+
if (node.type === "text") {
|
|
31
|
+
if (state.whitespace === "normal") {
|
|
32
|
+
return minifyText(node, state);
|
|
33
|
+
}
|
|
34
|
+
if (state.whitespace === "nowrap") {
|
|
35
|
+
node.value = state.collapse(node.value);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return { ignore: ignorableNode(node), stripAtStart: false, remove: false };
|
|
39
|
+
}
|
|
40
|
+
function minifyText(node, state) {
|
|
41
|
+
const value = state.collapse(node.value);
|
|
42
|
+
const result = { ignore: false, stripAtStart: false, remove: false };
|
|
43
|
+
let start = 0;
|
|
44
|
+
let end = value.length;
|
|
45
|
+
if (state.before && removable(value.charAt(0))) {
|
|
46
|
+
start++;
|
|
47
|
+
}
|
|
48
|
+
if (start !== end && removable(value.charAt(end - 1))) {
|
|
49
|
+
if (state.after) {
|
|
50
|
+
end--;
|
|
51
|
+
} else {
|
|
52
|
+
result.stripAtStart = true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (start === end) {
|
|
56
|
+
result.remove = true;
|
|
57
|
+
} else {
|
|
58
|
+
node.value = value.slice(start, end);
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
62
|
+
function all(parent, state) {
|
|
63
|
+
let before = state.before;
|
|
64
|
+
const after = state.after;
|
|
65
|
+
const children = parent.children;
|
|
66
|
+
let length = children.length;
|
|
67
|
+
let index2 = -1;
|
|
68
|
+
while (++index2 < length) {
|
|
69
|
+
const result = minify(children[index2], {
|
|
70
|
+
...state,
|
|
71
|
+
after: collapsableAfter(children, index2, after),
|
|
72
|
+
before
|
|
73
|
+
});
|
|
74
|
+
if (result.remove) {
|
|
75
|
+
children.splice(index2, 1);
|
|
76
|
+
index2--;
|
|
77
|
+
length--;
|
|
78
|
+
} else if (!result.ignore) {
|
|
79
|
+
before = result.stripAtStart;
|
|
80
|
+
}
|
|
81
|
+
if (content(children[index2])) {
|
|
82
|
+
before = false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return { ignore: false, stripAtStart: Boolean(before || after), remove: false };
|
|
86
|
+
}
|
|
87
|
+
function collapsableAfter(nodes, index2, after) {
|
|
88
|
+
while (++index2 < nodes.length) {
|
|
89
|
+
const node = nodes[index2];
|
|
90
|
+
let result = inferBoundary(node);
|
|
91
|
+
if (result === void 0 && "children" in node && !skippable(node)) {
|
|
92
|
+
result = collapsableAfter(node.children, -1);
|
|
93
|
+
}
|
|
94
|
+
if (typeof result === "boolean") {
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return after;
|
|
99
|
+
}
|
|
100
|
+
function inferBoundary(node) {
|
|
101
|
+
if (node.type === "element") {
|
|
102
|
+
if (content(node)) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
if (blocklike(node)) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
} else if (node.type === "text") {
|
|
109
|
+
if (!index$1.whitespace(node)) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
} else if (!ignorableNode(node)) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function content(node) {
|
|
117
|
+
return index$2.embedded(node) || index$3.isElement(node, content$1.content);
|
|
118
|
+
}
|
|
119
|
+
function blocklike(node) {
|
|
120
|
+
return index$3.isElement(node, block.blocks);
|
|
121
|
+
}
|
|
122
|
+
function skippable(node) {
|
|
123
|
+
return Boolean(node.type === "element" && node.properties.hidden) || ignorableNode(node) || index$3.isElement(node, skippable$1.skippable);
|
|
124
|
+
}
|
|
125
|
+
function removable(character) {
|
|
126
|
+
return character === " " || character === "\n";
|
|
127
|
+
}
|
|
128
|
+
function replaceNewlines(value) {
|
|
129
|
+
const match = /\r?\n|\r/.exec(value);
|
|
130
|
+
return match ? match[0] : " ";
|
|
131
|
+
}
|
|
132
|
+
function replaceWhitespace() {
|
|
133
|
+
return " ";
|
|
134
|
+
}
|
|
135
|
+
function collapseFactory(replace) {
|
|
136
|
+
return collapse;
|
|
137
|
+
function collapse(value) {
|
|
138
|
+
return String(value).replace(/[\t\n\v\f\r ]+/g, replace);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function inferWhiteSpace(node, state) {
|
|
142
|
+
if ("tagName" in node && node.properties) {
|
|
143
|
+
switch (node.tagName) {
|
|
144
|
+
case "listing":
|
|
145
|
+
case "plaintext":
|
|
146
|
+
case "script":
|
|
147
|
+
case "style":
|
|
148
|
+
case "xmp": {
|
|
149
|
+
return "pre";
|
|
150
|
+
}
|
|
151
|
+
case "nobr": {
|
|
152
|
+
return "nowrap";
|
|
153
|
+
}
|
|
154
|
+
case "pre": {
|
|
155
|
+
return node.properties.wrap ? "pre-wrap" : "pre";
|
|
156
|
+
}
|
|
157
|
+
case "td":
|
|
158
|
+
case "th": {
|
|
159
|
+
return node.properties.noWrap ? "nowrap" : state.whitespace;
|
|
160
|
+
}
|
|
161
|
+
case "textarea": {
|
|
162
|
+
return "pre-wrap";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return state.whitespace;
|
|
167
|
+
}
|
|
168
|
+
module.exports = rehypeMinifyWhitespace;
|
|
169
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/rehype-minify-whitespace/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').Text} Text\n */\n\n/**\n * @callback Collapse\n * Collapse a string.\n * @param {string} value\n * Value to collapse.\n * @returns {string}\n * Collapsed value.\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [newlines=false]\n * Collapse whitespace containing newlines to `'\\n'` instead of `' '`\n * (default: `false`); the default is to collapse to a single space.\n *\n * @typedef Result\n * Result.\n * @property {boolean} remove\n * Whether to remove.\n * @property {boolean} ignore\n * Whether to ignore.\n * @property {boolean} stripAtStart\n * Whether to strip at the start.\n *\n * @typedef State\n * Info passed around.\n * @property {Collapse} collapse\n * Collapse.\n * @property {Whitespace} whitespace\n * Current whitespace.\n * @property {boolean | undefined} [before]\n * Whether there is a break before (default: `false`).\n * @property {boolean | undefined} [after]\n * Whether there is a break after (default: `false`).\n *\n * @typedef {'normal' | 'nowrap' | 'pre' | 'pre-wrap'} Whitespace\n * Whitespace setting.\n */\n\nimport {embedded} from 'hast-util-embedded'\nimport {isElement} from 'hast-util-is-element'\nimport {whitespace} from 'hast-util-whitespace'\nimport {convert} from 'unist-util-is'\nimport {blocks} from './block.js'\nimport {content as contents} from './content.js'\nimport {skippable as skippables} from './skippable.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\nconst ignorableNode = convert(['doctype', 'comment'])\n\n/**\n * Minify whitespace.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns\n * Transform.\n */\nexport default function rehypeMinifyWhitespace(options) {\n const settings = options || emptyOptions\n const collapse = collapseFactory(\n settings.newlines ? replaceNewlines : replaceWhitespace\n )\n\n /**\n * @param {Root} tree\n * Tree.\n * @returns {undefined}\n * Nothing.\n */\n return function (tree) {\n minify(tree, {collapse, whitespace: 'normal'})\n }\n}\n\n/**\n * @param {Nodes} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction minify(node, state) {\n if ('children' in node) {\n const settings = {...state}\n\n if (node.type === 'root' || blocklike(node)) {\n settings.before = true\n settings.after = true\n }\n\n settings.whitespace = inferWhiteSpace(node, state)\n\n return all(node, settings)\n }\n\n if (node.type === 'text') {\n if (state.whitespace === 'normal') {\n return minifyText(node, state)\n }\n\n // Naïve collapse, but no trimming:\n if (state.whitespace === 'nowrap') {\n node.value = state.collapse(node.value)\n }\n\n // The `pre-wrap` or `pre` whitespace settings are neither collapsed nor\n // trimmed.\n }\n\n return {ignore: ignorableNode(node), stripAtStart: false, remove: false}\n}\n\n/**\n * @param {Text} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction minifyText(node, state) {\n const value = state.collapse(node.value)\n const result = {ignore: false, stripAtStart: false, remove: false}\n let start = 0\n let end = value.length\n\n if (state.before && removable(value.charAt(0))) {\n start++\n }\n\n if (start !== end && removable(value.charAt(end - 1))) {\n if (state.after) {\n end--\n } else {\n result.stripAtStart = true\n }\n }\n\n if (start === end) {\n result.remove = true\n } else {\n node.value = value.slice(start, end)\n }\n\n return result\n}\n\n/**\n * @param {Parents} parent\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction all(parent, state) {\n let before = state.before\n const after = state.after\n const children = parent.children\n let length = children.length\n let index = -1\n\n while (++index < length) {\n const result = minify(children[index], {\n ...state,\n after: collapsableAfter(children, index, after),\n before\n })\n\n if (result.remove) {\n children.splice(index, 1)\n index--\n length--\n } else if (!result.ignore) {\n before = result.stripAtStart\n }\n\n // If this element, such as a `<select>` or `<img>`, contributes content\n // somehow, allow whitespace again.\n if (content(children[index])) {\n before = false\n }\n }\n\n return {ignore: false, stripAtStart: Boolean(before || after), remove: false}\n}\n\n/**\n * @param {Array<Nodes>} nodes\n * Nodes.\n * @param {number} index\n * Index.\n * @param {boolean | undefined} [after]\n * Whether there is a break after `nodes` (default: `false`).\n * @returns {boolean | undefined}\n * Whether there is a break after the node at `index`.\n */\nfunction collapsableAfter(nodes, index, after) {\n while (++index < nodes.length) {\n const node = nodes[index]\n let result = inferBoundary(node)\n\n if (result === undefined && 'children' in node && !skippable(node)) {\n result = collapsableAfter(node.children, -1)\n }\n\n if (typeof result === 'boolean') {\n return result\n }\n }\n\n return after\n}\n\n/**\n * Infer two types of boundaries:\n *\n * 1. `true` — boundary for which whitespace around it does not contribute\n * anything\n * 2. `false` — boundary for which whitespace around it *does* contribute\n *\n * No result (`undefined`) is returned if it is unknown.\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean | undefined}\n * Boundary.\n */\nfunction inferBoundary(node) {\n if (node.type === 'element') {\n if (content(node)) {\n return false\n }\n\n if (blocklike(node)) {\n return true\n }\n\n // Unknown: either depends on siblings if embedded or metadata, or on\n // children.\n } else if (node.type === 'text') {\n if (!whitespace(node)) {\n return false\n }\n } else if (!ignorableNode(node)) {\n return false\n }\n}\n\n/**\n * Infer whether a node is skippable.\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean}\n * Whether `node` is skippable.\n */\nfunction content(node) {\n return embedded(node) || isElement(node, contents)\n}\n\n/**\n * See: <https://html.spec.whatwg.org/#the-css-user-agent-style-sheet-and-presentational-hints>\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean}\n * Whether `node` is block-like.\n */\nfunction blocklike(node) {\n return isElement(node, blocks)\n}\n\n/**\n * @param {Parents} node\n * Node.\n * @returns {boolean}\n * Whether `node` is skippable.\n */\nfunction skippable(node) {\n return (\n Boolean(node.type === 'element' && node.properties.hidden) ||\n ignorableNode(node) ||\n isElement(node, skippables)\n )\n}\n\n/**\n * @param {string} character\n * Character.\n * @returns {boolean}\n * Whether `character` is removable.\n */\nfunction removable(character) {\n return character === ' ' || character === '\\n'\n}\n\n/**\n * @type {Collapse}\n */\nfunction replaceNewlines(value) {\n const match = /\\r?\\n|\\r/.exec(value)\n return match ? match[0] : ' '\n}\n\n/**\n * @type {Collapse}\n */\nfunction replaceWhitespace() {\n return ' '\n}\n\n/**\n * @param {Collapse} replace\n * @returns {Collapse}\n * Collapse.\n */\nfunction collapseFactory(replace) {\n return collapse\n\n /**\n * @type {Collapse}\n */\n function collapse(value) {\n return String(value).replace(/[\\t\\n\\v\\f\\r ]+/g, replace)\n }\n}\n\n/**\n * We don’t need to support void elements here (so `nobr wbr` -> `normal` is\n * ignored).\n *\n * @param {Parents} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Whitespace}\n * Whitespace.\n */\nfunction inferWhiteSpace(node, state) {\n if ('tagName' in node && node.properties) {\n switch (node.tagName) {\n // Whitespace in script/style, while not displayed by CSS as significant,\n // could have some meaning in JS/CSS, so we can’t touch them.\n case 'listing':\n case 'plaintext':\n case 'script':\n case 'style':\n case 'xmp': {\n return 'pre'\n }\n\n case 'nobr': {\n return 'nowrap'\n }\n\n case 'pre': {\n return node.properties.wrap ? 'pre-wrap' : 'pre'\n }\n\n case 'td':\n case 'th': {\n return node.properties.noWrap ? 'nowrap' : state.whitespace\n }\n\n case 'textarea': {\n return 'pre-wrap'\n }\n\n default:\n }\n }\n\n return state.whitespace\n}\n"],"names":["convert","index","whitespace","embedded","isElement","contents","blocks","skippables"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { blocks } from "./block.js";
|
|
2
|
+
import { content as content$1 } from "./content.js";
|
|
3
|
+
import { skippable as skippable$1 } from "./skippable.js";
|
|
4
|
+
import { convert } from "../../unist-util-is/lib/index.js";
|
|
5
|
+
import { whitespace } from "../../hast-util-whitespace/lib/index.js";
|
|
6
|
+
import { embedded } from "../../hast-util-embedded/lib/index.js";
|
|
7
|
+
import { isElement } from "../../hast-util-is-element/lib/index.js";
|
|
8
|
+
const emptyOptions = {};
|
|
9
|
+
const ignorableNode = convert(["doctype", "comment"]);
|
|
10
|
+
function rehypeMinifyWhitespace(options) {
|
|
11
|
+
const settings = options || emptyOptions;
|
|
12
|
+
const collapse = collapseFactory(
|
|
13
|
+
settings.newlines ? replaceNewlines : replaceWhitespace
|
|
14
|
+
);
|
|
15
|
+
return function(tree) {
|
|
16
|
+
minify(tree, { collapse, whitespace: "normal" });
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function minify(node, state) {
|
|
20
|
+
if ("children" in node) {
|
|
21
|
+
const settings = { ...state };
|
|
22
|
+
if (node.type === "root" || blocklike(node)) {
|
|
23
|
+
settings.before = true;
|
|
24
|
+
settings.after = true;
|
|
25
|
+
}
|
|
26
|
+
settings.whitespace = inferWhiteSpace(node, state);
|
|
27
|
+
return all(node, settings);
|
|
28
|
+
}
|
|
29
|
+
if (node.type === "text") {
|
|
30
|
+
if (state.whitespace === "normal") {
|
|
31
|
+
return minifyText(node, state);
|
|
32
|
+
}
|
|
33
|
+
if (state.whitespace === "nowrap") {
|
|
34
|
+
node.value = state.collapse(node.value);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return { ignore: ignorableNode(node), stripAtStart: false, remove: false };
|
|
38
|
+
}
|
|
39
|
+
function minifyText(node, state) {
|
|
40
|
+
const value = state.collapse(node.value);
|
|
41
|
+
const result = { ignore: false, stripAtStart: false, remove: false };
|
|
42
|
+
let start = 0;
|
|
43
|
+
let end = value.length;
|
|
44
|
+
if (state.before && removable(value.charAt(0))) {
|
|
45
|
+
start++;
|
|
46
|
+
}
|
|
47
|
+
if (start !== end && removable(value.charAt(end - 1))) {
|
|
48
|
+
if (state.after) {
|
|
49
|
+
end--;
|
|
50
|
+
} else {
|
|
51
|
+
result.stripAtStart = true;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (start === end) {
|
|
55
|
+
result.remove = true;
|
|
56
|
+
} else {
|
|
57
|
+
node.value = value.slice(start, end);
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
function all(parent, state) {
|
|
62
|
+
let before = state.before;
|
|
63
|
+
const after = state.after;
|
|
64
|
+
const children = parent.children;
|
|
65
|
+
let length = children.length;
|
|
66
|
+
let index = -1;
|
|
67
|
+
while (++index < length) {
|
|
68
|
+
const result = minify(children[index], {
|
|
69
|
+
...state,
|
|
70
|
+
after: collapsableAfter(children, index, after),
|
|
71
|
+
before
|
|
72
|
+
});
|
|
73
|
+
if (result.remove) {
|
|
74
|
+
children.splice(index, 1);
|
|
75
|
+
index--;
|
|
76
|
+
length--;
|
|
77
|
+
} else if (!result.ignore) {
|
|
78
|
+
before = result.stripAtStart;
|
|
79
|
+
}
|
|
80
|
+
if (content(children[index])) {
|
|
81
|
+
before = false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return { ignore: false, stripAtStart: Boolean(before || after), remove: false };
|
|
85
|
+
}
|
|
86
|
+
function collapsableAfter(nodes, index, after) {
|
|
87
|
+
while (++index < nodes.length) {
|
|
88
|
+
const node = nodes[index];
|
|
89
|
+
let result = inferBoundary(node);
|
|
90
|
+
if (result === void 0 && "children" in node && !skippable(node)) {
|
|
91
|
+
result = collapsableAfter(node.children, -1);
|
|
92
|
+
}
|
|
93
|
+
if (typeof result === "boolean") {
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return after;
|
|
98
|
+
}
|
|
99
|
+
function inferBoundary(node) {
|
|
100
|
+
if (node.type === "element") {
|
|
101
|
+
if (content(node)) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
if (blocklike(node)) {
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
} else if (node.type === "text") {
|
|
108
|
+
if (!whitespace(node)) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
} else if (!ignorableNode(node)) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function content(node) {
|
|
116
|
+
return embedded(node) || isElement(node, content$1);
|
|
117
|
+
}
|
|
118
|
+
function blocklike(node) {
|
|
119
|
+
return isElement(node, blocks);
|
|
120
|
+
}
|
|
121
|
+
function skippable(node) {
|
|
122
|
+
return Boolean(node.type === "element" && node.properties.hidden) || ignorableNode(node) || isElement(node, skippable$1);
|
|
123
|
+
}
|
|
124
|
+
function removable(character) {
|
|
125
|
+
return character === " " || character === "\n";
|
|
126
|
+
}
|
|
127
|
+
function replaceNewlines(value) {
|
|
128
|
+
const match = /\r?\n|\r/.exec(value);
|
|
129
|
+
return match ? match[0] : " ";
|
|
130
|
+
}
|
|
131
|
+
function replaceWhitespace() {
|
|
132
|
+
return " ";
|
|
133
|
+
}
|
|
134
|
+
function collapseFactory(replace) {
|
|
135
|
+
return collapse;
|
|
136
|
+
function collapse(value) {
|
|
137
|
+
return String(value).replace(/[\t\n\v\f\r ]+/g, replace);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function inferWhiteSpace(node, state) {
|
|
141
|
+
if ("tagName" in node && node.properties) {
|
|
142
|
+
switch (node.tagName) {
|
|
143
|
+
case "listing":
|
|
144
|
+
case "plaintext":
|
|
145
|
+
case "script":
|
|
146
|
+
case "style":
|
|
147
|
+
case "xmp": {
|
|
148
|
+
return "pre";
|
|
149
|
+
}
|
|
150
|
+
case "nobr": {
|
|
151
|
+
return "nowrap";
|
|
152
|
+
}
|
|
153
|
+
case "pre": {
|
|
154
|
+
return node.properties.wrap ? "pre-wrap" : "pre";
|
|
155
|
+
}
|
|
156
|
+
case "td":
|
|
157
|
+
case "th": {
|
|
158
|
+
return node.properties.noWrap ? "nowrap" : state.whitespace;
|
|
159
|
+
}
|
|
160
|
+
case "textarea": {
|
|
161
|
+
return "pre-wrap";
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return state.whitespace;
|
|
166
|
+
}
|
|
167
|
+
export {
|
|
168
|
+
rehypeMinifyWhitespace as default
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/rehype-minify-whitespace/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').Text} Text\n */\n\n/**\n * @callback Collapse\n * Collapse a string.\n * @param {string} value\n * Value to collapse.\n * @returns {string}\n * Collapsed value.\n *\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [newlines=false]\n * Collapse whitespace containing newlines to `'\\n'` instead of `' '`\n * (default: `false`); the default is to collapse to a single space.\n *\n * @typedef Result\n * Result.\n * @property {boolean} remove\n * Whether to remove.\n * @property {boolean} ignore\n * Whether to ignore.\n * @property {boolean} stripAtStart\n * Whether to strip at the start.\n *\n * @typedef State\n * Info passed around.\n * @property {Collapse} collapse\n * Collapse.\n * @property {Whitespace} whitespace\n * Current whitespace.\n * @property {boolean | undefined} [before]\n * Whether there is a break before (default: `false`).\n * @property {boolean | undefined} [after]\n * Whether there is a break after (default: `false`).\n *\n * @typedef {'normal' | 'nowrap' | 'pre' | 'pre-wrap'} Whitespace\n * Whitespace setting.\n */\n\nimport {embedded} from 'hast-util-embedded'\nimport {isElement} from 'hast-util-is-element'\nimport {whitespace} from 'hast-util-whitespace'\nimport {convert} from 'unist-util-is'\nimport {blocks} from './block.js'\nimport {content as contents} from './content.js'\nimport {skippable as skippables} from './skippable.js'\n\n/** @type {Options} */\nconst emptyOptions = {}\nconst ignorableNode = convert(['doctype', 'comment'])\n\n/**\n * Minify whitespace.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns\n * Transform.\n */\nexport default function rehypeMinifyWhitespace(options) {\n const settings = options || emptyOptions\n const collapse = collapseFactory(\n settings.newlines ? replaceNewlines : replaceWhitespace\n )\n\n /**\n * @param {Root} tree\n * Tree.\n * @returns {undefined}\n * Nothing.\n */\n return function (tree) {\n minify(tree, {collapse, whitespace: 'normal'})\n }\n}\n\n/**\n * @param {Nodes} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction minify(node, state) {\n if ('children' in node) {\n const settings = {...state}\n\n if (node.type === 'root' || blocklike(node)) {\n settings.before = true\n settings.after = true\n }\n\n settings.whitespace = inferWhiteSpace(node, state)\n\n return all(node, settings)\n }\n\n if (node.type === 'text') {\n if (state.whitespace === 'normal') {\n return minifyText(node, state)\n }\n\n // Naïve collapse, but no trimming:\n if (state.whitespace === 'nowrap') {\n node.value = state.collapse(node.value)\n }\n\n // The `pre-wrap` or `pre` whitespace settings are neither collapsed nor\n // trimmed.\n }\n\n return {ignore: ignorableNode(node), stripAtStart: false, remove: false}\n}\n\n/**\n * @param {Text} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction minifyText(node, state) {\n const value = state.collapse(node.value)\n const result = {ignore: false, stripAtStart: false, remove: false}\n let start = 0\n let end = value.length\n\n if (state.before && removable(value.charAt(0))) {\n start++\n }\n\n if (start !== end && removable(value.charAt(end - 1))) {\n if (state.after) {\n end--\n } else {\n result.stripAtStart = true\n }\n }\n\n if (start === end) {\n result.remove = true\n } else {\n node.value = value.slice(start, end)\n }\n\n return result\n}\n\n/**\n * @param {Parents} parent\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Result}\n * Result.\n */\nfunction all(parent, state) {\n let before = state.before\n const after = state.after\n const children = parent.children\n let length = children.length\n let index = -1\n\n while (++index < length) {\n const result = minify(children[index], {\n ...state,\n after: collapsableAfter(children, index, after),\n before\n })\n\n if (result.remove) {\n children.splice(index, 1)\n index--\n length--\n } else if (!result.ignore) {\n before = result.stripAtStart\n }\n\n // If this element, such as a `<select>` or `<img>`, contributes content\n // somehow, allow whitespace again.\n if (content(children[index])) {\n before = false\n }\n }\n\n return {ignore: false, stripAtStart: Boolean(before || after), remove: false}\n}\n\n/**\n * @param {Array<Nodes>} nodes\n * Nodes.\n * @param {number} index\n * Index.\n * @param {boolean | undefined} [after]\n * Whether there is a break after `nodes` (default: `false`).\n * @returns {boolean | undefined}\n * Whether there is a break after the node at `index`.\n */\nfunction collapsableAfter(nodes, index, after) {\n while (++index < nodes.length) {\n const node = nodes[index]\n let result = inferBoundary(node)\n\n if (result === undefined && 'children' in node && !skippable(node)) {\n result = collapsableAfter(node.children, -1)\n }\n\n if (typeof result === 'boolean') {\n return result\n }\n }\n\n return after\n}\n\n/**\n * Infer two types of boundaries:\n *\n * 1. `true` — boundary for which whitespace around it does not contribute\n * anything\n * 2. `false` — boundary for which whitespace around it *does* contribute\n *\n * No result (`undefined`) is returned if it is unknown.\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean | undefined}\n * Boundary.\n */\nfunction inferBoundary(node) {\n if (node.type === 'element') {\n if (content(node)) {\n return false\n }\n\n if (blocklike(node)) {\n return true\n }\n\n // Unknown: either depends on siblings if embedded or metadata, or on\n // children.\n } else if (node.type === 'text') {\n if (!whitespace(node)) {\n return false\n }\n } else if (!ignorableNode(node)) {\n return false\n }\n}\n\n/**\n * Infer whether a node is skippable.\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean}\n * Whether `node` is skippable.\n */\nfunction content(node) {\n return embedded(node) || isElement(node, contents)\n}\n\n/**\n * See: <https://html.spec.whatwg.org/#the-css-user-agent-style-sheet-and-presentational-hints>\n *\n * @param {Nodes} node\n * Node.\n * @returns {boolean}\n * Whether `node` is block-like.\n */\nfunction blocklike(node) {\n return isElement(node, blocks)\n}\n\n/**\n * @param {Parents} node\n * Node.\n * @returns {boolean}\n * Whether `node` is skippable.\n */\nfunction skippable(node) {\n return (\n Boolean(node.type === 'element' && node.properties.hidden) ||\n ignorableNode(node) ||\n isElement(node, skippables)\n )\n}\n\n/**\n * @param {string} character\n * Character.\n * @returns {boolean}\n * Whether `character` is removable.\n */\nfunction removable(character) {\n return character === ' ' || character === '\\n'\n}\n\n/**\n * @type {Collapse}\n */\nfunction replaceNewlines(value) {\n const match = /\\r?\\n|\\r/.exec(value)\n return match ? match[0] : ' '\n}\n\n/**\n * @type {Collapse}\n */\nfunction replaceWhitespace() {\n return ' '\n}\n\n/**\n * @param {Collapse} replace\n * @returns {Collapse}\n * Collapse.\n */\nfunction collapseFactory(replace) {\n return collapse\n\n /**\n * @type {Collapse}\n */\n function collapse(value) {\n return String(value).replace(/[\\t\\n\\v\\f\\r ]+/g, replace)\n }\n}\n\n/**\n * We don’t need to support void elements here (so `nobr wbr` -> `normal` is\n * ignored).\n *\n * @param {Parents} node\n * Node.\n * @param {State} state\n * Info passed around.\n * @returns {Whitespace}\n * Whitespace.\n */\nfunction inferWhiteSpace(node, state) {\n if ('tagName' in node && node.properties) {\n switch (node.tagName) {\n // Whitespace in script/style, while not displayed by CSS as significant,\n // could have some meaning in JS/CSS, so we can’t touch them.\n case 'listing':\n case 'plaintext':\n case 'script':\n case 'style':\n case 'xmp': {\n return 'pre'\n }\n\n case 'nobr': {\n return 'nowrap'\n }\n\n case 'pre': {\n return node.properties.wrap ? 'pre-wrap' : 'pre'\n }\n\n case 'td':\n case 'th': {\n return node.properties.noWrap ? 'nowrap' : state.whitespace\n }\n\n case 'textarea': {\n return 'pre-wrap'\n }\n\n default:\n }\n }\n\n return state.whitespace\n}\n"],"names":["contents","skippables"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const skippable = [
|
|
4
|
+
"area",
|
|
5
|
+
"base",
|
|
6
|
+
"basefont",
|
|
7
|
+
"dialog",
|
|
8
|
+
"datalist",
|
|
9
|
+
"head",
|
|
10
|
+
"link",
|
|
11
|
+
"meta",
|
|
12
|
+
"noembed",
|
|
13
|
+
"noframes",
|
|
14
|
+
"param",
|
|
15
|
+
"rp",
|
|
16
|
+
"script",
|
|
17
|
+
"source",
|
|
18
|
+
"style",
|
|
19
|
+
"template",
|
|
20
|
+
"track",
|
|
21
|
+
"title"
|
|
22
|
+
];
|
|
23
|
+
exports.skippable = skippable;
|
|
24
|
+
//# sourceMappingURL=skippable.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skippable.cjs","sources":["../../../../node_modules/rehype-minify-whitespace/lib/skippable.js"],"sourcesContent":["export const skippable = [\n 'area',\n 'base',\n 'basefont',\n 'dialog',\n 'datalist',\n 'head',\n 'link',\n 'meta',\n 'noembed',\n 'noframes',\n 'param',\n 'rp',\n 'script',\n 'source',\n 'style',\n 'template',\n 'track',\n 'title'\n]\n"],"names":[],"mappings":";;AAAY,MAAC,YAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const skippable = [
|
|
2
|
+
"area",
|
|
3
|
+
"base",
|
|
4
|
+
"basefont",
|
|
5
|
+
"dialog",
|
|
6
|
+
"datalist",
|
|
7
|
+
"head",
|
|
8
|
+
"link",
|
|
9
|
+
"meta",
|
|
10
|
+
"noembed",
|
|
11
|
+
"noframes",
|
|
12
|
+
"param",
|
|
13
|
+
"rp",
|
|
14
|
+
"script",
|
|
15
|
+
"source",
|
|
16
|
+
"style",
|
|
17
|
+
"template",
|
|
18
|
+
"track",
|
|
19
|
+
"title"
|
|
20
|
+
];
|
|
21
|
+
export {
|
|
22
|
+
skippable
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=skippable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skippable.js","sources":["../../../../node_modules/rehype-minify-whitespace/lib/skippable.js"],"sourcesContent":["export const skippable = [\n 'area',\n 'base',\n 'basefont',\n 'dialog',\n 'datalist',\n 'head',\n 'link',\n 'meta',\n 'noembed',\n 'noframes',\n 'param',\n 'rp',\n 'script',\n 'source',\n 'style',\n 'template',\n 'track',\n 'title'\n]\n"],"names":[],"mappings":"AAAY,MAAC,YAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("../../hast-util-from-html/lib/index.cjs");
|
|
3
|
+
function rehypeParse(options) {
|
|
4
|
+
const self = this;
|
|
5
|
+
const { emitParseErrors, ...settings } = { ...self.data("settings"), ...options };
|
|
6
|
+
self.parser = parser;
|
|
7
|
+
function parser(doc, file) {
|
|
8
|
+
return index.fromHtml(doc, {
|
|
9
|
+
...settings,
|
|
10
|
+
onerror: emitParseErrors ? function(message) {
|
|
11
|
+
if (file.path) {
|
|
12
|
+
message.name = file.path + ":" + message.name;
|
|
13
|
+
message.file = file.path;
|
|
14
|
+
}
|
|
15
|
+
file.messages.push(message);
|
|
16
|
+
} : void 0
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
module.exports = rehypeParse;
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/rehype-parse/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast-util-from-html').Options} FromHtmlOptions\n * @typedef {import('unified').Parser<Root>} Parser\n */\n\n/**\n * @typedef {Omit<FromHtmlOptions, 'onerror'> & RehypeParseFields} Options\n * Configuration.\n *\n * @typedef RehypeParseFields\n * Extra fields.\n * @property {boolean | null | undefined} [emitParseErrors=false]\n * Whether to emit parse errors while parsing (default: `false`).\n *\n * > 👉 **Note**: parse errors are currently being added to HTML.\n * > Not all errors emitted by parse5 (or us) are specced yet.\n * > Some documentation may still be missing.\n */\n\nimport {fromHtml} from 'hast-util-from-html'\n\n/**\n * Plugin to add support for parsing from HTML.\n *\n * > 👉 **Note**: this is not an XML parser.\n * > It supports SVG as embedded in HTML.\n * > It does not support the features available in XML.\n * > Passing SVG files might break but fragments of modern SVG should be fine.\n * > Use [`xast-util-from-xml`][xast-util-from-xml] to parse XML.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function rehypeParse(options) {\n /** @type {import('unified').Processor<Root>} */\n // @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.\n const self = this\n const {emitParseErrors, ...settings} = {...self.data('settings'), ...options}\n\n self.parser = parser\n\n /**\n * @type {Parser}\n */\n function parser(doc, file) {\n return fromHtml(doc, {\n ...settings,\n onerror: emitParseErrors\n ? function (message) {\n if (file.path) {\n message.name = file.path + ':' + message.name\n message.file = file.path\n }\n\n file.messages.push(message)\n }\n : undefined\n })\n }\n}\n"],"names":["fromHtml"],"mappings":";;AAoCe,SAAS,YAAY,SAAS;AAG3C,QAAM,OAAO;AACb,QAAM,EAAC,iBAAiB,GAAG,SAAQ,IAAI,EAAC,GAAG,KAAK,KAAK,UAAU,GAAG,GAAG,QAAO;AAE5E,OAAK,SAAS;AAKd,WAAS,OAAO,KAAK,MAAM;AACzB,WAAOA,MAAAA,SAAS,KAAK;AAAA,MACnB,GAAG;AAAA,MACH,SAAS,kBACL,SAAU,SAAS;AACjB,YAAI,KAAK,MAAM;AACb,kBAAQ,OAAO,KAAK,OAAO,MAAM,QAAQ;AACzC,kBAAQ,OAAO,KAAK;AAAA,QACrB;AAED,aAAK,SAAS,KAAK,OAAO;AAAA,MAC3B,IACD;AAAA,IACV,CAAK;AAAA,EACF;AACH;;","x_google_ignoreList":[0]}
|