@prismicio/client 7.7.5-alpha.0 → 7.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/types/api/repository.d.ts +4 -0
- package/package.json +2 -16
- package/src/index.ts +0 -8
- package/src/types/api/repository.ts +5 -0
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js +0 -63
- package/dist/_node_modules/@ungap/structured-clone/esm/deserialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js +0 -12
- package/dist/_node_modules/@ungap/structured-clone/esm/index.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js +0 -127
- package/dist/_node_modules/@ungap/structured-clone/esm/serialize.js.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.cjs.map +0 -1
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js +0 -23
- package/dist/_node_modules/@ungap/structured-clone/esm/types.js.map +0 -1
- package/dist/_node_modules/bail/index.cjs +0 -9
- package/dist/_node_modules/bail/index.cjs.map +0 -1
- package/dist/_node_modules/bail/index.js +0 -9
- package/dist/_node_modules/bail/index.js.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.cjs +0 -74
- package/dist/_node_modules/bcp-47-match/index.cjs.map +0 -1
- package/dist/_node_modules/bcp-47-match/index.js +0 -74
- package/dist/_node_modules/bcp-47-match/index.js.map +0 -1
- package/dist/_node_modules/boolbase/index.cjs +0 -13
- package/dist/_node_modules/boolbase/index.cjs.map +0 -1
- package/dist/_node_modules/boolbase/index.js +0 -14
- package/dist/_node_modules/boolbase/index.js.map +0 -1
- package/dist/_node_modules/ccount/index.cjs +0 -17
- package/dist/_node_modules/ccount/index.cjs.map +0 -1
- package/dist/_node_modules/ccount/index.js +0 -17
- package/dist/_node_modules/ccount/index.js.map +0 -1
- package/dist/_node_modules/character-entities/index.cjs +0 -2131
- package/dist/_node_modules/character-entities/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities/index.js +0 -2131
- package/dist/_node_modules/character-entities/index.js.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.cjs +0 -258
- package/dist/_node_modules/character-entities-html4/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-html4/index.js +0 -258
- package/dist/_node_modules/character-entities-html4/index.js.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.cjs +0 -112
- package/dist/_node_modules/character-entities-legacy/index.cjs.map +0 -1
- package/dist/_node_modules/character-entities-legacy/index.js +0 -112
- package/dist/_node_modules/character-entities-legacy/index.js.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.cjs +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/comma-separated-tokens/index.js +0 -32
- package/dist/_node_modules/comma-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/devlop/lib/default.cjs +0 -6
- package/dist/_node_modules/devlop/lib/default.cjs.map +0 -1
- package/dist/_node_modules/devlop/lib/default.js +0 -6
- package/dist/_node_modules/devlop/lib/default.js.map +0 -1
- package/dist/_node_modules/direction/index.cjs +0 -12
- package/dist/_node_modules/direction/index.cjs.map +0 -1
- package/dist/_node_modules/direction/index.js +0 -12
- package/dist/_node_modules/direction/index.js.map +0 -1
- package/dist/_node_modules/extend/index.cjs +0 -89
- package/dist/_node_modules/extend/index.cjs.map +0 -1
- package/dist/_node_modules/extend/index.js +0 -90
- package/dist/_node_modules/extend/index.js.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-embedded/lib/index.js +0 -14
- package/dist/_node_modules/hast-util-embedded/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/errors.js +0 -317
- package/dist/_node_modules/hast-util-from-html/lib/errors.js.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-html/lib/index.js +0 -96
- package/dist/_node_modules/hast-util-from-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js +0 -187
- package/dist/_node_modules/hast-util-from-parse5/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-has-property/lib/index.js +0 -9
- package/dist/_node_modules/hast-util-has-property/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-is-element/lib/index.js +0 -102
- package/dist/_node_modules/hast-util-is-element/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js +0 -40
- package/dist/_node_modules/hast-util-parse-selector/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/attribute.js +0 -67
- package/dist/_node_modules/hast-util-select/lib/attribute.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/class-name.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/class-name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/enter-state.js +0 -79
- package/dist/_node_modules/hast-util-select/lib/enter-state.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/id.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/id.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.cjs +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/index.js +0 -38
- package/dist/_node_modules/hast-util-select/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.cjs +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/name.js +0 -7
- package/dist/_node_modules/hast-util-select/lib/name.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.cjs +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/parse.js +0 -12
- package/dist/_node_modules/hast-util-select/lib/parse.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/pseudo.js +0 -231
- package/dist/_node_modules/hast-util-select/lib/pseudo.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.cjs +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/test.js +0 -27
- package/dist/_node_modules/hast-util-select/lib/test.js.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.cjs +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.cjs.map +0 -1
- package/dist/_node_modules/hast-util-select/lib/walk.js +0 -132
- package/dist/_node_modules/hast-util-select/lib/walk.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/handle/comment.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/doctype.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js +0 -137
- package/dist/_node_modules/hast-util-to-html/lib/handle/element.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js +0 -26
- package/dist/_node_modules/hast-util-to-html/lib/handle/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js +0 -8
- package/dist/_node_modules/hast-util-to-html/lib/handle/raw.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js +0 -7
- package/dist/_node_modules/hast-util-to-html/lib/handle/root.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js +0 -14
- package/dist/_node_modules/hast-util-to-html/lib/handle/text.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/index.js +0 -62
- package/dist/_node_modules/hast-util-to-html/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js +0 -92
- package/dist/_node_modules/hast-util-to-html/lib/omission/closing.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js +0 -11
- package/dist/_node_modules/hast-util-to-html/lib/omission/omission.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js +0 -52
- package/dist/_node_modules/hast-util-to-html/lib/omission/opening.js.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js +0 -24
- package/dist/_node_modules/hast-util-to-html/lib/omission/util/siblings.js.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-to-string/lib/index.js +0 -24
- package/dist/_node_modules/hast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hast-util-whitespace/lib/index.js +0 -11
- package/dist/_node_modules/hast-util-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.cjs +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/create-h.js +0 -159
- package/dist/_node_modules/hastscript/lib/create-h.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.cjs +0 -10
- package/dist/_node_modules/hastscript/lib/index.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/index.js +0 -10
- package/dist/_node_modules/hastscript/lib/index.js.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs.map +0 -1
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +0 -45
- package/dist/_node_modules/hastscript/lib/svg-case-sensitive-tag-names.js.map +0 -1
- package/dist/_node_modules/html-void-elements/index.cjs +0 -26
- package/dist/_node_modules/html-void-elements/index.cjs.map +0 -1
- package/dist/_node_modules/html-void-elements/index.js +0 -26
- package/dist/_node_modules/html-void-elements/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js +0 -720
- package/dist/_node_modules/mdast-util-from-markdown/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js +0 -116
- package/dist/_node_modules/mdast-util-to-hast/lib/footer.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/blockquote.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/delete.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/emphasis.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +0 -42
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/heading.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js +0 -12
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/html.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +0 -20
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js +0 -17
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/image.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js +0 -60
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/inline-code.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +0 -25
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link-reference.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js +0 -19
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/link.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js +0 -65
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list-item.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js +0 -27
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/list.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/paragraph.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js +0 -9
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/root.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/strong.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +0 -15
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-cell.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js +0 -36
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table-row.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js +0 -40
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/table.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js +0 -10
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/text.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +0 -14
- package/dist/_node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js +0 -16
- package/dist/_node_modules/mdast-util-to-hast/lib/index.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js +0 -30
- package/dist/_node_modules/mdast-util-to-hast/lib/revert.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js +0 -149
- package/dist/_node_modules/mdast-util-to-hast/lib/state.js.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.cjs.map +0 -1
- package/dist/_node_modules/mdast-util-to-string/lib/index.js +0 -39
- package/dist/_node_modules/mdast-util-to-string/lib/index.js.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.cjs +0 -94
- package/dist/_node_modules/micromark/lib/constructs.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/constructs.js +0 -94
- package/dist/_node_modules/micromark/lib/constructs.js.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/create-tokenizer.js +0 -316
- package/dist/_node_modules/micromark/lib/create-tokenizer.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.cjs +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/content.js +0 -58
- package/dist/_node_modules/micromark/lib/initialize/content.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.cjs +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/document.js +0 -212
- package/dist/_node_modules/micromark/lib/initialize/document.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/flow.js +0 -55
- package/dist/_node_modules/micromark/lib/initialize/flow.js.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.cjs +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/initialize/text.js +0 -143
- package/dist/_node_modules/micromark/lib/initialize/text.js.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.cjs +0 -35
- package/dist/_node_modules/micromark/lib/parse.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/parse.js +0 -35
- package/dist/_node_modules/micromark/lib/parse.js.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.cjs +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/postprocess.js +0 -10
- package/dist/_node_modules/micromark/lib/postprocess.js.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.cjs +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.cjs.map +0 -1
- package/dist/_node_modules/micromark/lib/preprocess.js +0 -81
- package/dist/_node_modules/micromark/lib/preprocess.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js +0 -116
- package/dist/_node_modules/micromark-core-commonmark/lib/attention.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js +0 -104
- package/dist/_node_modules/micromark-core-commonmark/lib/autolink.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js +0 -19
- package/dist/_node_modules/micromark-core-commonmark/lib/blank-line.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js +0 -62
- package/dist/_node_modules/micromark-core-commonmark/lib/block-quote.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js +0 -29
- package/dist/_node_modules/micromark-core-commonmark/lib/character-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js +0 -69
- package/dist/_node_modules/micromark-core-commonmark/lib/character-reference.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -187
- package/dist/_node_modules/micromark-core-commonmark/lib/code-fenced.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js +0 -68
- package/dist/_node_modules/micromark-core-commonmark/lib/code-indented.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js +0 -117
- package/dist/_node_modules/micromark-core-commonmark/lib/code-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js +0 -76
- package/dist/_node_modules/micromark-core-commonmark/lib/content.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js +0 -95
- package/dist/_node_modules/micromark-core-commonmark/lib/definition.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -24
- package/dist/_node_modules/micromark-core-commonmark/lib/hard-break-escape.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -96
- package/dist/_node_modules/micromark-core-commonmark/lib/heading-atx.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js +0 -384
- package/dist/_node_modules/micromark-core-commonmark/lib/html-flow.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js +0 -310
- package/dist/_node_modules/micromark-core-commonmark/lib/html-text.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js +0 -219
- package/dist/_node_modules/micromark-core-commonmark/lib/label-end.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -34
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-image.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -25
- package/dist/_node_modules/micromark-core-commonmark/lib/label-start-link.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js +0 -18
- package/dist/_node_modules/micromark-core-commonmark/lib/line-ending.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js +0 -136
- package/dist/_node_modules/micromark-core-commonmark/lib/list.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -90
- package/dist/_node_modules/micromark-core-commonmark/lib/setext-underline.js.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.cjs.map +0 -1
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -43
- package/dist/_node_modules/micromark-core-commonmark/lib/thematic-break.js.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.cjs +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-destination/index.js +0 -95
- package/dist/_node_modules/micromark-factory-destination/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.cjs +0 -64
- package/dist/_node_modules/micromark-factory-label/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-label/index.js +0 -64
- package/dist/_node_modules/micromark-factory-label/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.cjs +0 -25
- package/dist/_node_modules/micromark-factory-space/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-space/index.js +0 -25
- package/dist/_node_modules/micromark-factory-space/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.cjs +0 -66
- package/dist/_node_modules/micromark-factory-title/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-title/index.js +0 -66
- package/dist/_node_modules/micromark-factory-title/index.js.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-factory-whitespace/index.js +0 -27
- package/dist/_node_modules/micromark-factory-whitespace/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.cjs +0 -45
- package/dist/_node_modules/micromark-util-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-character/index.js +0 -45
- package/dist/_node_modules/micromark-util-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.cjs +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-chunked/index.js +0 -37
- package/dist/_node_modules/micromark-util-chunked/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.cjs +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-classify-character/index.js +0 -13
- package/dist/_node_modules/micromark-util-classify-character/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-combine-extensions/index.js +0 -42
- package/dist/_node_modules/micromark-util-combine-extensions/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -20
- package/dist/_node_modules/micromark-util-decode-numeric-character-reference/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.cjs +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-decode-string/index.js +0 -22
- package/dist/_node_modules/micromark-util-decode-string/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-html-tag-name/index.js +0 -70
- package/dist/_node_modules/micromark-util-html-tag-name/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js +0 -7
- package/dist/_node_modules/micromark-util-normalize-identifier/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-resolve-all/index.js +0 -16
- package/dist/_node_modules/micromark-util-resolve-all/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js +0 -42
- package/dist/_node_modules/micromark-util-sanitize-uri/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/index.js +0 -149
- package/dist/_node_modules/micromark-util-subtokenize/index.js.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs.map +0 -1
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -195
- package/dist/_node_modules/micromark-util-subtokenize/lib/splice-buffer.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/compile.js +0 -20
- package/dist/_node_modules/nth-check/lib/esm/compile.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.cjs +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/index.js +0 -11
- package/dist/_node_modules/nth-check/lib/esm/index.js.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.cjs.map +0 -1
- package/dist/_node_modules/nth-check/lib/esm/parse.js +0 -59
- package/dist/_node_modules/nth-check/lib/esm/parse.js.map +0 -1
- package/dist/_node_modules/property-information/index.cjs +0 -14
- package/dist/_node_modules/property-information/index.cjs.map +0 -1
- package/dist/_node_modules/property-information/index.js +0 -14
- package/dist/_node_modules/property-information/index.js.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.cjs +0 -62
- package/dist/_node_modules/property-information/lib/aria.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/aria.js +0 -62
- package/dist/_node_modules/property-information/lib/aria.js.map +0 -1
- package/dist/_node_modules/property-information/lib/find.cjs +0 -41
- package/dist/_node_modules/property-information/lib/find.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/find.js +0 -41
- package/dist/_node_modules/property-information/lib/find.js.map +0 -1
- package/dist/_node_modules/property-information/lib/html.cjs +0 -369
- package/dist/_node_modules/property-information/lib/html.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/html.js +0 -369
- package/dist/_node_modules/property-information/lib/html.js.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.cjs +0 -7
- package/dist/_node_modules/property-information/lib/normalize.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/normalize.js +0 -7
- package/dist/_node_modules/property-information/lib/normalize.js.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.cjs +0 -567
- package/dist/_node_modules/property-information/lib/svg.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/svg.js +0 -567
- package/dist/_node_modules/property-information/lib/svg.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js +0 -8
- package/dist/_node_modules/property-information/lib/util/case-insensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js +0 -7
- package/dist/_node_modules/property-information/lib/util/case-sensitive-transform.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.cjs +0 -31
- package/dist/_node_modules/property-information/lib/util/create.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/create.js +0 -31
- package/dist/_node_modules/property-information/lib/util/create.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/defined-info.js +0 -33
- package/dist/_node_modules/property-information/lib/util/defined-info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.cjs +0 -25
- package/dist/_node_modules/property-information/lib/util/info.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/info.js +0 -25
- package/dist/_node_modules/property-information/lib/util/info.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.cjs +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/merge.js +0 -15
- package/dist/_node_modules/property-information/lib/util/merge.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.cjs +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/schema.js +0 -22
- package/dist/_node_modules/property-information/lib/util/schema.js.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.cjs +0 -21
- package/dist/_node_modules/property-information/lib/util/types.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/util/types.js +0 -21
- package/dist/_node_modules/property-information/lib/util/types.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.cjs +0 -20
- package/dist/_node_modules/property-information/lib/xlink.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xlink.js +0 -20
- package/dist/_node_modules/property-information/lib/xlink.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xml.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xml.js +0 -12
- package/dist/_node_modules/property-information/lib/xml.js.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.cjs +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.cjs.map +0 -1
- package/dist/_node_modules/property-information/lib/xmlns.js +0 -12
- package/dist/_node_modules/property-information/lib/xmlns.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js +0 -122
- package/dist/_node_modules/rehype-minify-whitespace/lib/block.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js +0 -11
- package/dist/_node_modules/rehype-minify-whitespace/lib/content.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs +0 -169
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js +0 -170
- package/dist/_node_modules/rehype-minify-whitespace/lib/index.js.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.cjs.map +0 -1
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js +0 -24
- package/dist/_node_modules/rehype-minify-whitespace/lib/skippable.js.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.cjs +0 -21
- package/dist/_node_modules/rehype-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/rehype-parse/lib/index.js +0 -22
- package/dist/_node_modules/rehype-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.cjs +0 -19
- package/dist/_node_modules/remark-parse/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-parse/lib/index.js +0 -20
- package/dist/_node_modules/remark-parse/lib/index.js.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.cjs +0 -21
- package/dist/_node_modules/remark-rehype/lib/index.cjs.map +0 -1
- package/dist/_node_modules/remark-rehype/lib/index.js +0 -22
- package/dist/_node_modules/remark-rehype/lib/index.js.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.cjs +0 -12
- package/dist/_node_modules/space-separated-tokens/index.cjs.map +0 -1
- package/dist/_node_modules/space-separated-tokens/index.js +0 -12
- package/dist/_node_modules/space-separated-tokens/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js +0 -14
- package/dist/_node_modules/stringify-entities/lib/constant/dangerous.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.cjs +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/core.js +0 -52
- package/dist/_node_modules/stringify-entities/lib/core.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/index.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/index.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js +0 -26
- package/dist/_node_modules/stringify-entities/lib/util/format-smart.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-decimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js +0 -9
- package/dist/_node_modules/stringify-entities/lib/util/to-hexadecimal.js.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.cjs.map +0 -1
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js +0 -28
- package/dist/_node_modules/stringify-entities/lib/util/to-named.js.map +0 -1
- package/dist/_node_modules/trim-lines/index.cjs +0 -42
- package/dist/_node_modules/trim-lines/index.cjs.map +0 -1
- package/dist/_node_modules/trim-lines/index.js +0 -42
- package/dist/_node_modules/trim-lines/index.js.map +0 -1
- package/dist/_node_modules/trough/lib/index.cjs +0 -87
- package/dist/_node_modules/trough/lib/index.cjs.map +0 -1
- package/dist/_node_modules/trough/lib/index.js +0 -87
- package/dist/_node_modules/trough/lib/index.js.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs +0 -10
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.cjs.map +0 -1
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js +0 -11
- package/dist/_node_modules/unified/_node_modules/is-plain-obj/index.js.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.cjs +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/callable-instance.js +0 -31
- package/dist/_node_modules/unified/lib/callable-instance.js.map +0 -1
- package/dist/_node_modules/unified/lib/index.cjs +0 -637
- package/dist/_node_modules/unified/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unified/lib/index.js +0 -637
- package/dist/_node_modules/unified/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.cjs +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-is/lib/index.js +0 -94
- package/dist/_node_modules/unist-util-is/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.cjs +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-remove/lib/index.js +0 -39
- package/dist/_node_modules/unist-util-remove/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js +0 -28
- package/dist/_node_modules/unist-util-stringify-position/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +0 -28
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit/lib/index.js +0 -29
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/dist/_node_modules/unist-util-visit-parents/lib/color.js.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +0 -1
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +0 -84
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/index.cjs +0 -463
- package/dist/_node_modules/vfile/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/index.js +0 -463
- package/dist/_node_modules/vfile/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minpath.browser.js +0 -215
- package/dist/_node_modules/vfile/lib/minpath.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minproc.browser.js +0 -8
- package/dist/_node_modules/vfile/lib/minproc.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.browser.js +0 -47
- package/dist/_node_modules/vfile/lib/minurl.browser.js.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.cjs.map +0 -1
- package/dist/_node_modules/vfile/lib/minurl.shared.js +0 -10
- package/dist/_node_modules/vfile/lib/minurl.shared.js.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.cjs +0 -50
- package/dist/_node_modules/vfile-location/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-location/lib/index.js +0 -50
- package/dist/_node_modules/vfile-location/lib/index.js.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.cjs +0 -139
- package/dist/_node_modules/vfile-message/lib/index.cjs.map +0 -1
- package/dist/_node_modules/vfile-message/lib/index.js +0 -139
- package/dist/_node_modules/vfile-message/lib/index.js.map +0 -1
- package/dist/_node_modules/web-namespaces/index.cjs +0 -12
- package/dist/_node_modules/web-namespaces/index.cjs.map +0 -1
- package/dist/_node_modules/web-namespaces/index.js +0 -12
- package/dist/_node_modules/web-namespaces/index.js.map +0 -1
- package/dist/_node_modules/zwitch/index.cjs +0 -23
- package/dist/_node_modules/zwitch/index.cjs.map +0 -1
- package/dist/_node_modules/zwitch/index.js +0 -23
- package/dist/_node_modules/zwitch/index.js.map +0 -1
- package/dist/_virtual/_commonjsHelpers.cjs +0 -7
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.cjs +0 -9
- package/dist/_virtual/index.cjs.map +0 -1
- package/dist/_virtual/index.js +0 -9
- package/dist/_virtual/index.js.map +0 -1
- package/dist/errors/PrismicRichTextError.cjs +0 -6
- package/dist/errors/PrismicRichTextError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextError.d.ts +0 -2
- package/dist/errors/PrismicRichTextError.js +0 -6
- package/dist/errors/PrismicRichTextError.js.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.cjs +0 -7
- package/dist/errors/PrismicRichTextSerializerError.cjs.map +0 -1
- package/dist/errors/PrismicRichTextSerializerError.d.ts +0 -3
- package/dist/errors/PrismicRichTextSerializerError.js +0 -7
- package/dist/errors/PrismicRichTextSerializerError.js.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.cjs +0 -11
- package/dist/helpers/unstable_htmlAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_htmlAsRichText.d.ts +0 -81
- package/dist/helpers/unstable_htmlAsRichText.js +0 -11
- package/dist/helpers/unstable_htmlAsRichText.js.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.cjs +0 -12
- package/dist/helpers/unstable_markdownAsRichText.cjs.map +0 -1
- package/dist/helpers/unstable_markdownAsRichText.d.ts +0 -30
- package/dist/helpers/unstable_markdownAsRichText.js +0 -12
- package/dist/helpers/unstable_markdownAsRichText.js.map +0 -1
- package/dist/lib/RichTextFieldBuilder.cjs +0 -115
- package/dist/lib/RichTextFieldBuilder.cjs.map +0 -1
- package/dist/lib/RichTextFieldBuilder.d.ts +0 -35
- package/dist/lib/RichTextFieldBuilder.js +0 -115
- package/dist/lib/RichTextFieldBuilder.js.map +0 -1
- package/dist/lib/filterRichTextField.cjs +0 -88
- package/dist/lib/filterRichTextField.cjs.map +0 -1
- package/dist/lib/filterRichTextField.d.ts +0 -12
- package/dist/lib/filterRichTextField.js +0 -88
- package/dist/lib/filterRichTextField.js.map +0 -1
- package/dist/lib/hastSerializerHelpers.cjs +0 -96
- package/dist/lib/hastSerializerHelpers.cjs.map +0 -1
- package/dist/lib/hastSerializerHelpers.d.ts +0 -28
- package/dist/lib/hastSerializerHelpers.js +0 -96
- package/dist/lib/hastSerializerHelpers.js.map +0 -1
- package/dist/lib/hastToRichText.cjs +0 -164
- package/dist/lib/hastToRichText.cjs.map +0 -1
- package/dist/lib/hastToRichText.d.ts +0 -30
- package/dist/lib/hastToRichText.js +0 -164
- package/dist/lib/hastToRichText.js.map +0 -1
- package/dist/lib/rehypeRichText.cjs +0 -60
- package/dist/lib/rehypeRichText.cjs.map +0 -1
- package/dist/lib/rehypeRichText.d.ts +0 -66
- package/dist/lib/rehypeRichText.js +0 -60
- package/dist/lib/rehypeRichText.js.map +0 -1
- package/src/errors/PrismicRichTextError.ts +0 -1
- package/src/errors/PrismicRichTextSerializerError.ts +0 -3
- package/src/helpers/unstable_htmlAsRichText.ts +0 -122
- package/src/helpers/unstable_markdownAsRichText.ts +0 -53
- package/src/lib/RichTextFieldBuilder.ts +0 -164
- package/src/lib/filterRichTextField.ts +0 -159
- package/src/lib/hastSerializerHelpers.ts +0 -157
- package/src/lib/hastToRichText.ts +0 -295
- package/src/lib/rehypeRichText.ts +0 -184
|
@@ -1,720 +0,0 @@
|
|
|
1
|
-
import { decodeNumericCharacterReference } from "../../micromark-util-decode-numeric-character-reference/index.js";
|
|
2
|
-
import { decodeString } from "../../micromark-util-decode-string/index.js";
|
|
3
|
-
import { normalizeIdentifier } from "../../micromark-util-normalize-identifier/index.js";
|
|
4
|
-
import { decodeNamedCharacterReference } from "../../../_virtual/index.js";
|
|
5
|
-
import { postprocess } from "../../micromark/lib/postprocess.js";
|
|
6
|
-
import { parse } from "../../micromark/lib/parse.js";
|
|
7
|
-
import { preprocess } from "../../micromark/lib/preprocess.js";
|
|
8
|
-
import { stringifyPosition } from "../../unist-util-stringify-position/lib/index.js";
|
|
9
|
-
import { toString } from "../../mdast-util-to-string/lib/index.js";
|
|
10
|
-
const own = {}.hasOwnProperty;
|
|
11
|
-
function fromMarkdown(value, encoding, options) {
|
|
12
|
-
if (typeof encoding !== "string") {
|
|
13
|
-
options = encoding;
|
|
14
|
-
encoding = void 0;
|
|
15
|
-
}
|
|
16
|
-
return compiler(options)(postprocess(parse(options).document().write(preprocess()(value, encoding, true))));
|
|
17
|
-
}
|
|
18
|
-
function compiler(options) {
|
|
19
|
-
const config = {
|
|
20
|
-
transforms: [],
|
|
21
|
-
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
22
|
-
enter: {
|
|
23
|
-
autolink: opener(link),
|
|
24
|
-
autolinkProtocol: onenterdata,
|
|
25
|
-
autolinkEmail: onenterdata,
|
|
26
|
-
atxHeading: opener(heading),
|
|
27
|
-
blockQuote: opener(blockQuote),
|
|
28
|
-
characterEscape: onenterdata,
|
|
29
|
-
characterReference: onenterdata,
|
|
30
|
-
codeFenced: opener(codeFlow),
|
|
31
|
-
codeFencedFenceInfo: buffer,
|
|
32
|
-
codeFencedFenceMeta: buffer,
|
|
33
|
-
codeIndented: opener(codeFlow, buffer),
|
|
34
|
-
codeText: opener(codeText, buffer),
|
|
35
|
-
codeTextData: onenterdata,
|
|
36
|
-
data: onenterdata,
|
|
37
|
-
codeFlowValue: onenterdata,
|
|
38
|
-
definition: opener(definition),
|
|
39
|
-
definitionDestinationString: buffer,
|
|
40
|
-
definitionLabelString: buffer,
|
|
41
|
-
definitionTitleString: buffer,
|
|
42
|
-
emphasis: opener(emphasis),
|
|
43
|
-
hardBreakEscape: opener(hardBreak),
|
|
44
|
-
hardBreakTrailing: opener(hardBreak),
|
|
45
|
-
htmlFlow: opener(html, buffer),
|
|
46
|
-
htmlFlowData: onenterdata,
|
|
47
|
-
htmlText: opener(html, buffer),
|
|
48
|
-
htmlTextData: onenterdata,
|
|
49
|
-
image: opener(image),
|
|
50
|
-
label: buffer,
|
|
51
|
-
link: opener(link),
|
|
52
|
-
listItem: opener(listItem),
|
|
53
|
-
listItemValue: onenterlistitemvalue,
|
|
54
|
-
listOrdered: opener(list, onenterlistordered),
|
|
55
|
-
listUnordered: opener(list),
|
|
56
|
-
paragraph: opener(paragraph),
|
|
57
|
-
reference: onenterreference,
|
|
58
|
-
referenceString: buffer,
|
|
59
|
-
resourceDestinationString: buffer,
|
|
60
|
-
resourceTitleString: buffer,
|
|
61
|
-
setextHeading: opener(heading),
|
|
62
|
-
strong: opener(strong),
|
|
63
|
-
thematicBreak: opener(thematicBreak)
|
|
64
|
-
},
|
|
65
|
-
exit: {
|
|
66
|
-
atxHeading: closer(),
|
|
67
|
-
atxHeadingSequence: onexitatxheadingsequence,
|
|
68
|
-
autolink: closer(),
|
|
69
|
-
autolinkEmail: onexitautolinkemail,
|
|
70
|
-
autolinkProtocol: onexitautolinkprotocol,
|
|
71
|
-
blockQuote: closer(),
|
|
72
|
-
characterEscapeValue: onexitdata,
|
|
73
|
-
characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,
|
|
74
|
-
characterReferenceMarkerNumeric: onexitcharacterreferencemarker,
|
|
75
|
-
characterReferenceValue: onexitcharacterreferencevalue,
|
|
76
|
-
characterReference: onexitcharacterreference,
|
|
77
|
-
codeFenced: closer(onexitcodefenced),
|
|
78
|
-
codeFencedFence: onexitcodefencedfence,
|
|
79
|
-
codeFencedFenceInfo: onexitcodefencedfenceinfo,
|
|
80
|
-
codeFencedFenceMeta: onexitcodefencedfencemeta,
|
|
81
|
-
codeFlowValue: onexitdata,
|
|
82
|
-
codeIndented: closer(onexitcodeindented),
|
|
83
|
-
codeText: closer(onexitcodetext),
|
|
84
|
-
codeTextData: onexitdata,
|
|
85
|
-
data: onexitdata,
|
|
86
|
-
definition: closer(),
|
|
87
|
-
definitionDestinationString: onexitdefinitiondestinationstring,
|
|
88
|
-
definitionLabelString: onexitdefinitionlabelstring,
|
|
89
|
-
definitionTitleString: onexitdefinitiontitlestring,
|
|
90
|
-
emphasis: closer(),
|
|
91
|
-
hardBreakEscape: closer(onexithardbreak),
|
|
92
|
-
hardBreakTrailing: closer(onexithardbreak),
|
|
93
|
-
htmlFlow: closer(onexithtmlflow),
|
|
94
|
-
htmlFlowData: onexitdata,
|
|
95
|
-
htmlText: closer(onexithtmltext),
|
|
96
|
-
htmlTextData: onexitdata,
|
|
97
|
-
image: closer(onexitimage),
|
|
98
|
-
label: onexitlabel,
|
|
99
|
-
labelText: onexitlabeltext,
|
|
100
|
-
lineEnding: onexitlineending,
|
|
101
|
-
link: closer(onexitlink),
|
|
102
|
-
listItem: closer(),
|
|
103
|
-
listOrdered: closer(),
|
|
104
|
-
listUnordered: closer(),
|
|
105
|
-
paragraph: closer(),
|
|
106
|
-
referenceString: onexitreferencestring,
|
|
107
|
-
resourceDestinationString: onexitresourcedestinationstring,
|
|
108
|
-
resourceTitleString: onexitresourcetitlestring,
|
|
109
|
-
resource: onexitresource,
|
|
110
|
-
setextHeading: closer(onexitsetextheading),
|
|
111
|
-
setextHeadingLineSequence: onexitsetextheadinglinesequence,
|
|
112
|
-
setextHeadingText: onexitsetextheadingtext,
|
|
113
|
-
strong: closer(),
|
|
114
|
-
thematicBreak: closer()
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
configure(config, (options || {}).mdastExtensions || []);
|
|
118
|
-
const data = {};
|
|
119
|
-
return compile;
|
|
120
|
-
function compile(events) {
|
|
121
|
-
let tree = {
|
|
122
|
-
type: "root",
|
|
123
|
-
children: []
|
|
124
|
-
};
|
|
125
|
-
const context = {
|
|
126
|
-
stack: [tree],
|
|
127
|
-
tokenStack: [],
|
|
128
|
-
config,
|
|
129
|
-
enter,
|
|
130
|
-
exit,
|
|
131
|
-
buffer,
|
|
132
|
-
resume,
|
|
133
|
-
data
|
|
134
|
-
};
|
|
135
|
-
const listStack = [];
|
|
136
|
-
let index = -1;
|
|
137
|
-
while (++index < events.length) {
|
|
138
|
-
if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
|
|
139
|
-
if (events[index][0] === "enter") {
|
|
140
|
-
listStack.push(index);
|
|
141
|
-
} else {
|
|
142
|
-
const tail = listStack.pop();
|
|
143
|
-
index = prepareList(events, tail, index);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
index = -1;
|
|
148
|
-
while (++index < events.length) {
|
|
149
|
-
const handler = config[events[index][0]];
|
|
150
|
-
if (own.call(handler, events[index][1].type)) {
|
|
151
|
-
handler[events[index][1].type].call(Object.assign({
|
|
152
|
-
sliceSerialize: events[index][2].sliceSerialize
|
|
153
|
-
}, context), events[index][1]);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
if (context.tokenStack.length > 0) {
|
|
157
|
-
const tail = context.tokenStack[context.tokenStack.length - 1];
|
|
158
|
-
const handler = tail[1] || defaultOnError;
|
|
159
|
-
handler.call(context, void 0, tail[0]);
|
|
160
|
-
}
|
|
161
|
-
tree.position = {
|
|
162
|
-
start: point(events.length > 0 ? events[0][1].start : {
|
|
163
|
-
line: 1,
|
|
164
|
-
column: 1,
|
|
165
|
-
offset: 0
|
|
166
|
-
}),
|
|
167
|
-
end: point(events.length > 0 ? events[events.length - 2][1].end : {
|
|
168
|
-
line: 1,
|
|
169
|
-
column: 1,
|
|
170
|
-
offset: 0
|
|
171
|
-
})
|
|
172
|
-
};
|
|
173
|
-
index = -1;
|
|
174
|
-
while (++index < config.transforms.length) {
|
|
175
|
-
tree = config.transforms[index](tree) || tree;
|
|
176
|
-
}
|
|
177
|
-
return tree;
|
|
178
|
-
}
|
|
179
|
-
function prepareList(events, start, length) {
|
|
180
|
-
let index = start - 1;
|
|
181
|
-
let containerBalance = -1;
|
|
182
|
-
let listSpread = false;
|
|
183
|
-
let listItem2;
|
|
184
|
-
let lineIndex;
|
|
185
|
-
let firstBlankLineIndex;
|
|
186
|
-
let atMarker;
|
|
187
|
-
while (++index <= length) {
|
|
188
|
-
const event = events[index];
|
|
189
|
-
switch (event[1].type) {
|
|
190
|
-
case "listUnordered":
|
|
191
|
-
case "listOrdered":
|
|
192
|
-
case "blockQuote": {
|
|
193
|
-
if (event[0] === "enter") {
|
|
194
|
-
containerBalance++;
|
|
195
|
-
} else {
|
|
196
|
-
containerBalance--;
|
|
197
|
-
}
|
|
198
|
-
atMarker = void 0;
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
case "lineEndingBlank": {
|
|
202
|
-
if (event[0] === "enter") {
|
|
203
|
-
if (listItem2 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
204
|
-
firstBlankLineIndex = index;
|
|
205
|
-
}
|
|
206
|
-
atMarker = void 0;
|
|
207
|
-
}
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
case "linePrefix":
|
|
211
|
-
case "listItemValue":
|
|
212
|
-
case "listItemMarker":
|
|
213
|
-
case "listItemPrefix":
|
|
214
|
-
case "listItemPrefixWhitespace": {
|
|
215
|
-
break;
|
|
216
|
-
}
|
|
217
|
-
default: {
|
|
218
|
-
atMarker = void 0;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
222
|
-
if (listItem2) {
|
|
223
|
-
let tailIndex = index;
|
|
224
|
-
lineIndex = void 0;
|
|
225
|
-
while (tailIndex--) {
|
|
226
|
-
const tailEvent = events[tailIndex];
|
|
227
|
-
if (tailEvent[1].type === "lineEnding" || tailEvent[1].type === "lineEndingBlank") {
|
|
228
|
-
if (tailEvent[0] === "exit") continue;
|
|
229
|
-
if (lineIndex) {
|
|
230
|
-
events[lineIndex][1].type = "lineEndingBlank";
|
|
231
|
-
listSpread = true;
|
|
232
|
-
}
|
|
233
|
-
tailEvent[1].type = "lineEnding";
|
|
234
|
-
lineIndex = tailIndex;
|
|
235
|
-
} else if (tailEvent[1].type === "linePrefix" || tailEvent[1].type === "blockQuotePrefix" || tailEvent[1].type === "blockQuotePrefixWhitespace" || tailEvent[1].type === "blockQuoteMarker" || tailEvent[1].type === "listItemIndent") ;
|
|
236
|
-
else {
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
|
|
241
|
-
listItem2._spread = true;
|
|
242
|
-
}
|
|
243
|
-
listItem2.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
|
|
244
|
-
events.splice(lineIndex || index, 0, ["exit", listItem2, event[2]]);
|
|
245
|
-
index++;
|
|
246
|
-
length++;
|
|
247
|
-
}
|
|
248
|
-
if (event[1].type === "listItemPrefix") {
|
|
249
|
-
const item = {
|
|
250
|
-
type: "listItem",
|
|
251
|
-
_spread: false,
|
|
252
|
-
start: Object.assign({}, event[1].start),
|
|
253
|
-
// @ts-expect-error: we’ll add `end` in a second.
|
|
254
|
-
end: void 0
|
|
255
|
-
};
|
|
256
|
-
listItem2 = item;
|
|
257
|
-
events.splice(index, 0, ["enter", item, event[2]]);
|
|
258
|
-
index++;
|
|
259
|
-
length++;
|
|
260
|
-
firstBlankLineIndex = void 0;
|
|
261
|
-
atMarker = true;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
events[start][1]._spread = listSpread;
|
|
266
|
-
return length;
|
|
267
|
-
}
|
|
268
|
-
function opener(create, and) {
|
|
269
|
-
return open;
|
|
270
|
-
function open(token) {
|
|
271
|
-
enter.call(this, create(token), token);
|
|
272
|
-
if (and) and.call(this, token);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function buffer() {
|
|
276
|
-
this.stack.push({
|
|
277
|
-
type: "fragment",
|
|
278
|
-
children: []
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
function enter(node, token, errorHandler) {
|
|
282
|
-
const parent = this.stack[this.stack.length - 1];
|
|
283
|
-
const siblings = parent.children;
|
|
284
|
-
siblings.push(node);
|
|
285
|
-
this.stack.push(node);
|
|
286
|
-
this.tokenStack.push([token, errorHandler]);
|
|
287
|
-
node.position = {
|
|
288
|
-
start: point(token.start),
|
|
289
|
-
// @ts-expect-error: `end` will be patched later.
|
|
290
|
-
end: void 0
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
function closer(and) {
|
|
294
|
-
return close;
|
|
295
|
-
function close(token) {
|
|
296
|
-
if (and) and.call(this, token);
|
|
297
|
-
exit.call(this, token);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
function exit(token, onExitError) {
|
|
301
|
-
const node = this.stack.pop();
|
|
302
|
-
const open = this.tokenStack.pop();
|
|
303
|
-
if (!open) {
|
|
304
|
-
throw new Error("Cannot close `" + token.type + "` (" + stringifyPosition({
|
|
305
|
-
start: token.start,
|
|
306
|
-
end: token.end
|
|
307
|
-
}) + "): it’s not open");
|
|
308
|
-
} else if (open[0].type !== token.type) {
|
|
309
|
-
if (onExitError) {
|
|
310
|
-
onExitError.call(this, token, open[0]);
|
|
311
|
-
} else {
|
|
312
|
-
const handler = open[1] || defaultOnError;
|
|
313
|
-
handler.call(this, token, open[0]);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
node.position.end = point(token.end);
|
|
317
|
-
}
|
|
318
|
-
function resume() {
|
|
319
|
-
return toString(this.stack.pop());
|
|
320
|
-
}
|
|
321
|
-
function onenterlistordered() {
|
|
322
|
-
this.data.expectingFirstListItemValue = true;
|
|
323
|
-
}
|
|
324
|
-
function onenterlistitemvalue(token) {
|
|
325
|
-
if (this.data.expectingFirstListItemValue) {
|
|
326
|
-
const ancestor = this.stack[this.stack.length - 2];
|
|
327
|
-
ancestor.start = Number.parseInt(this.sliceSerialize(token), 10);
|
|
328
|
-
this.data.expectingFirstListItemValue = void 0;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
function onexitcodefencedfenceinfo() {
|
|
332
|
-
const data2 = this.resume();
|
|
333
|
-
const node = this.stack[this.stack.length - 1];
|
|
334
|
-
node.lang = data2;
|
|
335
|
-
}
|
|
336
|
-
function onexitcodefencedfencemeta() {
|
|
337
|
-
const data2 = this.resume();
|
|
338
|
-
const node = this.stack[this.stack.length - 1];
|
|
339
|
-
node.meta = data2;
|
|
340
|
-
}
|
|
341
|
-
function onexitcodefencedfence() {
|
|
342
|
-
if (this.data.flowCodeInside) return;
|
|
343
|
-
this.buffer();
|
|
344
|
-
this.data.flowCodeInside = true;
|
|
345
|
-
}
|
|
346
|
-
function onexitcodefenced() {
|
|
347
|
-
const data2 = this.resume();
|
|
348
|
-
const node = this.stack[this.stack.length - 1];
|
|
349
|
-
node.value = data2.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, "");
|
|
350
|
-
this.data.flowCodeInside = void 0;
|
|
351
|
-
}
|
|
352
|
-
function onexitcodeindented() {
|
|
353
|
-
const data2 = this.resume();
|
|
354
|
-
const node = this.stack[this.stack.length - 1];
|
|
355
|
-
node.value = data2.replace(/(\r?\n|\r)$/g, "");
|
|
356
|
-
}
|
|
357
|
-
function onexitdefinitionlabelstring(token) {
|
|
358
|
-
const label = this.resume();
|
|
359
|
-
const node = this.stack[this.stack.length - 1];
|
|
360
|
-
node.label = label;
|
|
361
|
-
node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
362
|
-
}
|
|
363
|
-
function onexitdefinitiontitlestring() {
|
|
364
|
-
const data2 = this.resume();
|
|
365
|
-
const node = this.stack[this.stack.length - 1];
|
|
366
|
-
node.title = data2;
|
|
367
|
-
}
|
|
368
|
-
function onexitdefinitiondestinationstring() {
|
|
369
|
-
const data2 = this.resume();
|
|
370
|
-
const node = this.stack[this.stack.length - 1];
|
|
371
|
-
node.url = data2;
|
|
372
|
-
}
|
|
373
|
-
function onexitatxheadingsequence(token) {
|
|
374
|
-
const node = this.stack[this.stack.length - 1];
|
|
375
|
-
if (!node.depth) {
|
|
376
|
-
const depth = this.sliceSerialize(token).length;
|
|
377
|
-
node.depth = depth;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
function onexitsetextheadingtext() {
|
|
381
|
-
this.data.setextHeadingSlurpLineEnding = true;
|
|
382
|
-
}
|
|
383
|
-
function onexitsetextheadinglinesequence(token) {
|
|
384
|
-
const node = this.stack[this.stack.length - 1];
|
|
385
|
-
node.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2;
|
|
386
|
-
}
|
|
387
|
-
function onexitsetextheading() {
|
|
388
|
-
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
389
|
-
}
|
|
390
|
-
function onenterdata(token) {
|
|
391
|
-
const node = this.stack[this.stack.length - 1];
|
|
392
|
-
const siblings = node.children;
|
|
393
|
-
let tail = siblings[siblings.length - 1];
|
|
394
|
-
if (!tail || tail.type !== "text") {
|
|
395
|
-
tail = text();
|
|
396
|
-
tail.position = {
|
|
397
|
-
start: point(token.start),
|
|
398
|
-
// @ts-expect-error: we’ll add `end` later.
|
|
399
|
-
end: void 0
|
|
400
|
-
};
|
|
401
|
-
siblings.push(tail);
|
|
402
|
-
}
|
|
403
|
-
this.stack.push(tail);
|
|
404
|
-
}
|
|
405
|
-
function onexitdata(token) {
|
|
406
|
-
const tail = this.stack.pop();
|
|
407
|
-
tail.value += this.sliceSerialize(token);
|
|
408
|
-
tail.position.end = point(token.end);
|
|
409
|
-
}
|
|
410
|
-
function onexitlineending(token) {
|
|
411
|
-
const context = this.stack[this.stack.length - 1];
|
|
412
|
-
if (this.data.atHardBreak) {
|
|
413
|
-
const tail = context.children[context.children.length - 1];
|
|
414
|
-
tail.position.end = point(token.end);
|
|
415
|
-
this.data.atHardBreak = void 0;
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
if (!this.data.setextHeadingSlurpLineEnding && config.canContainEols.includes(context.type)) {
|
|
419
|
-
onenterdata.call(this, token);
|
|
420
|
-
onexitdata.call(this, token);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
function onexithardbreak() {
|
|
424
|
-
this.data.atHardBreak = true;
|
|
425
|
-
}
|
|
426
|
-
function onexithtmlflow() {
|
|
427
|
-
const data2 = this.resume();
|
|
428
|
-
const node = this.stack[this.stack.length - 1];
|
|
429
|
-
node.value = data2;
|
|
430
|
-
}
|
|
431
|
-
function onexithtmltext() {
|
|
432
|
-
const data2 = this.resume();
|
|
433
|
-
const node = this.stack[this.stack.length - 1];
|
|
434
|
-
node.value = data2;
|
|
435
|
-
}
|
|
436
|
-
function onexitcodetext() {
|
|
437
|
-
const data2 = this.resume();
|
|
438
|
-
const node = this.stack[this.stack.length - 1];
|
|
439
|
-
node.value = data2;
|
|
440
|
-
}
|
|
441
|
-
function onexitlink() {
|
|
442
|
-
const node = this.stack[this.stack.length - 1];
|
|
443
|
-
if (this.data.inReference) {
|
|
444
|
-
const referenceType = this.data.referenceType || "shortcut";
|
|
445
|
-
node.type += "Reference";
|
|
446
|
-
node.referenceType = referenceType;
|
|
447
|
-
delete node.url;
|
|
448
|
-
delete node.title;
|
|
449
|
-
} else {
|
|
450
|
-
delete node.identifier;
|
|
451
|
-
delete node.label;
|
|
452
|
-
}
|
|
453
|
-
this.data.referenceType = void 0;
|
|
454
|
-
}
|
|
455
|
-
function onexitimage() {
|
|
456
|
-
const node = this.stack[this.stack.length - 1];
|
|
457
|
-
if (this.data.inReference) {
|
|
458
|
-
const referenceType = this.data.referenceType || "shortcut";
|
|
459
|
-
node.type += "Reference";
|
|
460
|
-
node.referenceType = referenceType;
|
|
461
|
-
delete node.url;
|
|
462
|
-
delete node.title;
|
|
463
|
-
} else {
|
|
464
|
-
delete node.identifier;
|
|
465
|
-
delete node.label;
|
|
466
|
-
}
|
|
467
|
-
this.data.referenceType = void 0;
|
|
468
|
-
}
|
|
469
|
-
function onexitlabeltext(token) {
|
|
470
|
-
const string = this.sliceSerialize(token);
|
|
471
|
-
const ancestor = this.stack[this.stack.length - 2];
|
|
472
|
-
ancestor.label = decodeString(string);
|
|
473
|
-
ancestor.identifier = normalizeIdentifier(string).toLowerCase();
|
|
474
|
-
}
|
|
475
|
-
function onexitlabel() {
|
|
476
|
-
const fragment = this.stack[this.stack.length - 1];
|
|
477
|
-
const value = this.resume();
|
|
478
|
-
const node = this.stack[this.stack.length - 1];
|
|
479
|
-
this.data.inReference = true;
|
|
480
|
-
if (node.type === "link") {
|
|
481
|
-
const children = fragment.children;
|
|
482
|
-
node.children = children;
|
|
483
|
-
} else {
|
|
484
|
-
node.alt = value;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function onexitresourcedestinationstring() {
|
|
488
|
-
const data2 = this.resume();
|
|
489
|
-
const node = this.stack[this.stack.length - 1];
|
|
490
|
-
node.url = data2;
|
|
491
|
-
}
|
|
492
|
-
function onexitresourcetitlestring() {
|
|
493
|
-
const data2 = this.resume();
|
|
494
|
-
const node = this.stack[this.stack.length - 1];
|
|
495
|
-
node.title = data2;
|
|
496
|
-
}
|
|
497
|
-
function onexitresource() {
|
|
498
|
-
this.data.inReference = void 0;
|
|
499
|
-
}
|
|
500
|
-
function onenterreference() {
|
|
501
|
-
this.data.referenceType = "collapsed";
|
|
502
|
-
}
|
|
503
|
-
function onexitreferencestring(token) {
|
|
504
|
-
const label = this.resume();
|
|
505
|
-
const node = this.stack[this.stack.length - 1];
|
|
506
|
-
node.label = label;
|
|
507
|
-
node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
508
|
-
this.data.referenceType = "full";
|
|
509
|
-
}
|
|
510
|
-
function onexitcharacterreferencemarker(token) {
|
|
511
|
-
this.data.characterReferenceType = token.type;
|
|
512
|
-
}
|
|
513
|
-
function onexitcharacterreferencevalue(token) {
|
|
514
|
-
const data2 = this.sliceSerialize(token);
|
|
515
|
-
const type = this.data.characterReferenceType;
|
|
516
|
-
let value;
|
|
517
|
-
if (type) {
|
|
518
|
-
value = decodeNumericCharacterReference(data2, type === "characterReferenceMarkerNumeric" ? 10 : 16);
|
|
519
|
-
this.data.characterReferenceType = void 0;
|
|
520
|
-
} else {
|
|
521
|
-
const result = decodeNamedCharacterReference(data2);
|
|
522
|
-
value = result;
|
|
523
|
-
}
|
|
524
|
-
const tail = this.stack[this.stack.length - 1];
|
|
525
|
-
tail.value += value;
|
|
526
|
-
}
|
|
527
|
-
function onexitcharacterreference(token) {
|
|
528
|
-
const tail = this.stack.pop();
|
|
529
|
-
tail.position.end = point(token.end);
|
|
530
|
-
}
|
|
531
|
-
function onexitautolinkprotocol(token) {
|
|
532
|
-
onexitdata.call(this, token);
|
|
533
|
-
const node = this.stack[this.stack.length - 1];
|
|
534
|
-
node.url = this.sliceSerialize(token);
|
|
535
|
-
}
|
|
536
|
-
function onexitautolinkemail(token) {
|
|
537
|
-
onexitdata.call(this, token);
|
|
538
|
-
const node = this.stack[this.stack.length - 1];
|
|
539
|
-
node.url = "mailto:" + this.sliceSerialize(token);
|
|
540
|
-
}
|
|
541
|
-
function blockQuote() {
|
|
542
|
-
return {
|
|
543
|
-
type: "blockquote",
|
|
544
|
-
children: []
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
function codeFlow() {
|
|
548
|
-
return {
|
|
549
|
-
type: "code",
|
|
550
|
-
lang: null,
|
|
551
|
-
meta: null,
|
|
552
|
-
value: ""
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
function codeText() {
|
|
556
|
-
return {
|
|
557
|
-
type: "inlineCode",
|
|
558
|
-
value: ""
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
function definition() {
|
|
562
|
-
return {
|
|
563
|
-
type: "definition",
|
|
564
|
-
identifier: "",
|
|
565
|
-
label: null,
|
|
566
|
-
title: null,
|
|
567
|
-
url: ""
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
function emphasis() {
|
|
571
|
-
return {
|
|
572
|
-
type: "emphasis",
|
|
573
|
-
children: []
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
function heading() {
|
|
577
|
-
return {
|
|
578
|
-
type: "heading",
|
|
579
|
-
// @ts-expect-error `depth` will be set later.
|
|
580
|
-
depth: 0,
|
|
581
|
-
children: []
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
function hardBreak() {
|
|
585
|
-
return {
|
|
586
|
-
type: "break"
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
function html() {
|
|
590
|
-
return {
|
|
591
|
-
type: "html",
|
|
592
|
-
value: ""
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
function image() {
|
|
596
|
-
return {
|
|
597
|
-
type: "image",
|
|
598
|
-
title: null,
|
|
599
|
-
url: "",
|
|
600
|
-
alt: null
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
function link() {
|
|
604
|
-
return {
|
|
605
|
-
type: "link",
|
|
606
|
-
title: null,
|
|
607
|
-
url: "",
|
|
608
|
-
children: []
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
function list(token) {
|
|
612
|
-
return {
|
|
613
|
-
type: "list",
|
|
614
|
-
ordered: token.type === "listOrdered",
|
|
615
|
-
start: null,
|
|
616
|
-
spread: token._spread,
|
|
617
|
-
children: []
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
function listItem(token) {
|
|
621
|
-
return {
|
|
622
|
-
type: "listItem",
|
|
623
|
-
spread: token._spread,
|
|
624
|
-
checked: null,
|
|
625
|
-
children: []
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
function paragraph() {
|
|
629
|
-
return {
|
|
630
|
-
type: "paragraph",
|
|
631
|
-
children: []
|
|
632
|
-
};
|
|
633
|
-
}
|
|
634
|
-
function strong() {
|
|
635
|
-
return {
|
|
636
|
-
type: "strong",
|
|
637
|
-
children: []
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
|
-
function text() {
|
|
641
|
-
return {
|
|
642
|
-
type: "text",
|
|
643
|
-
value: ""
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
function thematicBreak() {
|
|
647
|
-
return {
|
|
648
|
-
type: "thematicBreak"
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
function point(d) {
|
|
653
|
-
return {
|
|
654
|
-
line: d.line,
|
|
655
|
-
column: d.column,
|
|
656
|
-
offset: d.offset
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
function configure(combined, extensions) {
|
|
660
|
-
let index = -1;
|
|
661
|
-
while (++index < extensions.length) {
|
|
662
|
-
const value = extensions[index];
|
|
663
|
-
if (Array.isArray(value)) {
|
|
664
|
-
configure(combined, value);
|
|
665
|
-
} else {
|
|
666
|
-
extension(combined, value);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
function extension(combined, extension2) {
|
|
671
|
-
let key;
|
|
672
|
-
for (key in extension2) {
|
|
673
|
-
if (own.call(extension2, key)) {
|
|
674
|
-
switch (key) {
|
|
675
|
-
case "canContainEols": {
|
|
676
|
-
const right = extension2[key];
|
|
677
|
-
if (right) {
|
|
678
|
-
combined[key].push(...right);
|
|
679
|
-
}
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
case "transforms": {
|
|
683
|
-
const right = extension2[key];
|
|
684
|
-
if (right) {
|
|
685
|
-
combined[key].push(...right);
|
|
686
|
-
}
|
|
687
|
-
break;
|
|
688
|
-
}
|
|
689
|
-
case "enter":
|
|
690
|
-
case "exit": {
|
|
691
|
-
const right = extension2[key];
|
|
692
|
-
if (right) {
|
|
693
|
-
Object.assign(combined[key], right);
|
|
694
|
-
}
|
|
695
|
-
break;
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
function defaultOnError(left, right) {
|
|
702
|
-
if (left) {
|
|
703
|
-
throw new Error("Cannot close `" + left.type + "` (" + stringifyPosition({
|
|
704
|
-
start: left.start,
|
|
705
|
-
end: left.end
|
|
706
|
-
}) + "): a different token (`" + right.type + "`, " + stringifyPosition({
|
|
707
|
-
start: right.start,
|
|
708
|
-
end: right.end
|
|
709
|
-
}) + ") is open");
|
|
710
|
-
} else {
|
|
711
|
-
throw new Error("Cannot close document, a token (`" + right.type + "`, " + stringifyPosition({
|
|
712
|
-
start: right.start,
|
|
713
|
-
end: right.end
|
|
714
|
-
}) + ") is still open");
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
export {
|
|
718
|
-
fromMarkdown
|
|
719
|
-
};
|
|
720
|
-
//# sourceMappingURL=index.js.map
|