diff --git a/frontend/NOTICE b/frontend/NOTICE index 1c9362b48..e0968991c 100644 --- a/frontend/NOTICE +++ b/frontend/NOTICE @@ -254,7 +254,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/code-frame 7.22.13 +@babel/code-frame 7.23.4 MIT MIT License @@ -280,7 +280,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/compat-data 7.23.2 +@babel/compat-data 7.23.3 MIT MIT License @@ -306,7 +306,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/core 7.23.2 +@babel/core 7.23.3 MIT MIT License @@ -332,7 +332,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/generator 7.23.0 +@babel/generator 7.23.4 MIT MIT License @@ -566,7 +566,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/helper-module-transforms 7.23.0 +@babel/helper-module-transforms 7.23.3 MIT MIT License @@ -748,7 +748,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/helper-string-parser 7.22.5 +@babel/helper-string-parser 7.23.4 MIT MIT License @@ -826,7 +826,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/helpers 7.23.2 +@babel/helpers 7.23.4 MIT MIT License @@ -852,7 +852,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/highlight 7.22.20 +@babel/highlight 7.23.4 MIT MIT License @@ -878,7 +878,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/parser 7.23.3 +@babel/parser 7.23.4 MIT Copyright (C) 2012-2014 by various contributors (see AUTHORS) @@ -1005,7 +1005,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/plugin-syntax-jsx 7.22.5 +@babel/plugin-syntax-jsx 7.23.3 MIT MIT License @@ -1031,7 +1031,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/plugin-syntax-typescript 7.22.5 +@babel/plugin-syntax-typescript 7.23.3 MIT MIT License @@ -1057,7 +1057,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/plugin-transform-typescript 7.22.15 +@babel/plugin-transform-typescript 7.23.4 MIT MIT License @@ -1083,7 +1083,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/runtime 7.23.2 +@babel/runtime 7.23.4 MIT MIT License @@ -1109,7 +1109,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/standalone 7.23.2 +@babel/standalone 7.23.4 MIT MIT License @@ -1161,7 +1161,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/traverse 7.23.2 +@babel/traverse 7.23.4 MIT MIT License @@ -1187,7 +1187,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@babel/types 7.23.3 +@babel/types 7.23.4 MIT MIT License @@ -1604,7 +1604,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@codemirror/commands 6.2.5 +@codemirror/commands 6.3.0 MIT MIT License @@ -1754,7 +1754,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@codemirror/language 6.8.0 +@codemirror/language 6.9.2 MIT MIT License @@ -1804,32 +1804,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@codemirror/state 6.2.1 -MIT -MIT License - -Copyright (C) 2018-2021 by Marijn Haverbeke and others - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@codemirror/view 6.15.3 +@codemirror/state 6.3.1 MIT MIT License @@ -1961,7 +1936,7 @@ MIT This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details. -@esbuild/linux-x64 0.19.5 +@esbuild/linux-x64 0.19.7 MIT # esbuild @@ -1993,7 +1968,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@eslint-community/regexpp 4.9.1 +@eslint-community/regexpp 4.10.0 MIT MIT License @@ -2018,7 +1993,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@eslint/eslintrc 2.1.2 +@eslint/eslintrc 2.1.3 MIT Copyright OpenJS Foundation and other contributors, @@ -2041,7 +2016,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@eslint/js 8.51.0 +@eslint/js 8.54.0 MIT Copyright OpenJS Foundation and other contributors, @@ -2064,7 +2039,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@fastify/busboy 2.0.0 +@fastify/busboy 2.1.0 MIT Copyright Brian White. All rights reserved. @@ -2112,7 +2087,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@humanwhocodes/config-array 0.11.11 +@humanwhocodes/config-array 0.11.13 Apache-2.0 Apache License Version 2.0, January 2004 @@ -2522,7 +2497,7 @@ Apache-2.0 limitations under the License. -@humanwhocodes/object-schema 1.2.1 +@humanwhocodes/object-schema 2.0.1 BSD-3-Clause BSD 3-Clause License @@ -2555,7 +2530,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@iconify/icons-fluent-emoji 1.2.10 +@iconify/icons-fluent-emoji 1.2.11 MIT # Fluent Emoji @@ -2563,7 +2538,7 @@ This package includes individual files for each icon, ready to be imported into Each icon is in its own file, so you can bundle several icons from different icon sets without bundling entire icon sets. -Data is stored in `IconifyIcon` format. See [IconifyIcon documentation](https://docs.iconify.design/types/iconify-icon.html). +Data is stored in `IconifyIcon` format. See [IconifyIcon documentation](https://iconify.design/docs/types/iconify-icon.html). ## Installation @@ -2573,9 +2548,11 @@ npm install @iconify/icons-fluent-emoji --save-dev ## Usage -For information about this package, see [Iconify documentation](https://docs.iconify.design/icons/icons.html). +For information about this package, see [Iconify documentation](https://iconify.design/docs/icons/icons.html). -For information about icon components that use this package, see [Iconify icon components documentation](https://docs.iconify.design/icon-components/). +Icon data can be used with many tools and components, see [Iconify documentation](https://iconify.design/docs/usage/). + +To convert to SVG, you can use [Iconify Utils](https://iconify.design/docs/libraries/utils/examples/export-svgs-from-icon-set.html) for basic usage or [Iconify Tools](https://iconify.design/docs/libraries/tools/). @iconify/icons-game-icons 1.2.1 @@ -2859,7 +2836,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@jridgewell/trace-mapping 0.3.19 +@jridgewell/trace-mapping 0.3.20 MIT Copyright 2022 Justin Ridgewell @@ -2931,7 +2908,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@lezer/common 1.1.0 +@lezer/common 1.1.1 MIT MIT License @@ -2981,7 +2958,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@lezer/highlight 1.1.6 +@lezer/highlight 1.2.0 MIT MIT License @@ -3081,7 +3058,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@lezer/markdown 1.1.0 +@lezer/markdown 1.1.1 MIT MIT License @@ -3489,7 +3466,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/devtools-kit 1.0.0 +@nuxt/devtools-kit 1.0.3 MIT MIT License @@ -3514,7 +3491,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/devtools-wizard 1.0.0 +@nuxt/devtools-wizard 1.0.3 MIT MIT License @@ -3539,7 +3516,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/devtools 1.0.0 +@nuxt/devtools 1.0.3 MIT MIT License @@ -3564,7 +3541,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/kit 3.8.1 +@nuxt/kit 3.8.2 MIT The MIT License (MIT) @@ -3589,7 +3566,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/schema 3.8.1 +@nuxt/schema 3.8.2 MIT The MIT License (MIT) @@ -3664,7 +3641,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@nuxt/vite-builder 3.8.1 +@nuxt/vite-builder 3.8.2 MIT The MIT License (MIT) @@ -5629,6 +5606,20 @@ normalizePath('foo/bar'); // 'foo/bar' [LICENSE (MIT)](/LICENSE) +@rollup/rollup-linux-x64-gnu 4.5.1 +MIT +# `@rollup/rollup-linux-x64-gnu` + +This is the **x86_64-unknown-linux-gnu** binary for `rollup` + + +@rollup/rollup-linux-x64-musl 4.5.1 +MIT +# `@rollup/rollup-linux-x64-musl` + +This is the **x86_64-unknown-linux-musl** binary for `rollup` + + @sigstore/bundle 2.1.0 Apache-2.0 @@ -6479,6 +6470,19 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@sindresorhus/merge-streams 1.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @trysound/sax 0.2.0 ISC The ISC License @@ -6548,32 +6552,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@types/chai-subset 1.3.3 +@types/chai-subset 1.3.5 MIT - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. -@types/chai 4.3.8 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + + +@types/chai 4.3.11 MIT MIT License @@ -6598,7 +6602,7 @@ MIT SOFTWARE -@types/d3-scale-chromatic 3.0.2 +@types/d3-scale-chromatic 3.0.3 MIT MIT License @@ -6698,7 +6702,7 @@ MIT SOFTWARE -@types/eslint-scope 3.7.5 +@types/eslint-scope 3.7.7 MIT MIT License @@ -6723,7 +6727,7 @@ MIT SOFTWARE -@types/eslint 8.44.4 +@types/eslint 8.44.7 MIT MIT License @@ -6748,7 +6752,7 @@ MIT SOFTWARE -@types/estree 1.0.2 +@types/estree 1.0.5 MIT MIT License @@ -6773,7 +6777,7 @@ MIT SOFTWARE -@types/hast 2.3.8 +@types/hast 3.0.3 MIT MIT License @@ -6823,7 +6827,7 @@ MIT SOFTWARE -@types/istanbul-lib-coverage 2.0.4 +@types/istanbul-lib-coverage 2.0.6 MIT MIT License @@ -6848,7 +6852,7 @@ MIT SOFTWARE -@types/istanbul-lib-report 3.0.1 +@types/istanbul-lib-report 3.0.3 MIT MIT License @@ -6873,7 +6877,7 @@ MIT SOFTWARE -@types/istanbul-reports 3.0.2 +@types/istanbul-reports 3.0.4 MIT MIT License @@ -6898,7 +6902,7 @@ MIT SOFTWARE -@types/json-schema 7.0.13 +@types/json-schema 7.0.15 MIT MIT License @@ -6945,7 +6949,7 @@ Additional Details These definitions were written by Jason Swearingen . -@types/lodash 4.14.199 +@types/lodash 4.14.202 MIT MIT License @@ -6995,7 +6999,7 @@ MIT SOFTWARE -@types/ms 0.7.34 +@types/mdast 4.0.3 MIT MIT License @@ -7020,7 +7024,7 @@ MIT SOFTWARE -@types/node 18.18.5 +@types/ms 0.7.34 MIT MIT License @@ -7045,7 +7049,7 @@ MIT SOFTWARE -@types/normalize-package-data 2.4.2 +@types/node 18.18.12 MIT MIT License @@ -7070,7 +7074,7 @@ MIT SOFTWARE -@types/parse5 6.0.3 +@types/normalize-package-data 2.4.4 MIT MIT License @@ -7120,7 +7124,7 @@ MIT SOFTWARE -@types/semver 7.5.3 +@types/semver 7.5.6 MIT MIT License @@ -7170,7 +7174,32 @@ MIT SOFTWARE -@types/uuid 9.0.5 +@types/unist 3.0.2 +MIT + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + + +@types/uuid 9.0.7 MIT MIT License @@ -7195,7 +7224,7 @@ MIT SOFTWARE -@types/yargs-parser 21.0.1 +@types/yargs-parser 21.0.3 MIT MIT License @@ -7220,7 +7249,7 @@ MIT SOFTWARE -@types/yargs 17.0.28 +@types/yargs 17.0.32 MIT MIT License @@ -7245,7 +7274,7 @@ MIT SOFTWARE -@types/zxcvbn 4.4.2 +@types/zxcvbn 4.4.4 MIT MIT License @@ -7270,7 +7299,7 @@ MIT SOFTWARE -@typescript-eslint/eslint-plugin 6.8.0 +@typescript-eslint/eslint-plugin 6.12.0 MIT MIT License @@ -7295,7 +7324,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@typescript-eslint/parser 6.8.0 +@typescript-eslint/parser 6.12.0 BSD-2-Clause TypeScript ESLint Parser Copyright JS Foundation and other contributors, https://js.foundation @@ -7321,7 +7350,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@typescript-eslint/scope-manager 6.8.0 +@typescript-eslint/scope-manager 6.12.0 MIT MIT License @@ -7346,7 +7375,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@typescript-eslint/type-utils 6.8.0 +@typescript-eslint/type-utils 6.12.0 MIT MIT License @@ -7371,7 +7400,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@typescript-eslint/types 6.8.0 +@typescript-eslint/types 6.12.0 MIT MIT License @@ -7396,7 +7425,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@typescript-eslint/typescript-estree 6.8.0 +@typescript-eslint/typescript-estree 6.12.0 BSD-2-Clause TypeScript ESTree @@ -7426,7 +7455,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -@typescript-eslint/utils 6.8.0 +@typescript-eslint/utils 6.12.0 MIT MIT License @@ -7451,7 +7480,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@typescript-eslint/visitor-keys 6.8.0 +@typescript-eslint/visitor-keys 6.12.0 MIT MIT License @@ -7476,7 +7505,26 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@unhead/dom 1.8.3 +@ungap/structured-clone 1.2.0 +ISC +ISC License + +Copyright (c) 2021, Andrea Giammarchi, @WebReflection + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +@unhead/dom 1.8.7 MIT # @unhead/dom @@ -7492,7 +7540,7 @@ npm install @unhead/dom See the [@unhead/dom](https://unhead.unjs.io/guide/getting-started/how-it-works#unheaddom) for how this works. -@unhead/schema 1.8.3 +@unhead/schema 1.8.7 MIT # `@unhead/schema` @@ -7512,7 +7560,7 @@ yarn add --dev @unhead/schema See [head.ts](./src/head.ts) for the full list of types. -@unhead/shared 1.8.3 +@unhead/shared 1.8.7 MIT # `@unhead/schema` @@ -7532,7 +7580,7 @@ yarn add --dev @unhead/schema See [head.ts](./src/head.ts) for the full list of types. -@unhead/ssr 1.8.3 +@unhead/ssr 1.8.7 MIT # @unhead/ssr @@ -7548,7 +7596,7 @@ npm install @unhead/ssr See the [Unhead](https://unhead.unjs.io/) for more details. -@unhead/vue 1.8.3 +@unhead/vue 1.8.7 MIT @@ -7562,7 +7610,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vitejs/plugin-vue-jsx 3.0.2 +@vitejs/plugin-vue-jsx 3.1.0 MIT MIT License @@ -7587,7 +7635,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vitejs/plugin-vue 4.4.0 +@vitejs/plugin-vue 4.5.0 MIT MIT License @@ -7768,7 +7816,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vue-macros/common 1.8.0 +@vue-macros/common 1.9.0 MIT MIT License @@ -8097,7 +8145,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vue/test-utils 2.4.1 +@vue/test-utils 2.4.2 MIT The MIT License (MIT) @@ -9086,7 +9134,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -acorn-walk 8.2.0 +acorn-walk 8.3.0 MIT MIT License @@ -10504,33 +10552,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -base64-arraybuffer-es6 0.7.0 -MIT -Copyright (c) 2012 Niklas von Hertzen - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - - -big-integer 1.6.51 +big-integer 1.6.52 Unlicense This is free and unencumbered software released into the public domain. @@ -10954,7 +10976,7 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -call-bind 1.0.2 +call-bind 1.0.5 MIT MIT License @@ -11030,7 +11052,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -caniuse-lite 1.0.30001549 +caniuse-lite 1.0.30001564 CC-BY-4.0 Attribution 4.0 International @@ -11742,7 +11764,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -citty 0.1.4 +citty 0.1.5 MIT MIT License @@ -12379,7 +12401,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -core-js 3.33.0 +core-js 3.33.3 MIT Copyright (c) 2014-2023 Denis Pushkarev @@ -14983,6 +15005,32 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +devlop 1.1.0 +MIT +(The MIT License) + +Copyright (c) 2023 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + diff-sequences 29.6.3 MIT MIT License @@ -15447,31 +15495,6 @@ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -domexception 1.0.1 -MIT -MIT License - -Copyright © 2017 Domenic Denicola - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - domhandler 5.0.3 BSD-2-Clause Copyright (c) Felix Böhm @@ -16221,7 +16244,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -electron-to-chromium 1.4.556 +electron-to-chromium 1.4.590 ISC Copyright 2018 Kilian Valkhof @@ -16813,7 +16836,7 @@ OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to -es-abstract 1.22.2 +es-abstract 1.22.3 MIT The MIT License (MIT) @@ -16838,7 +16861,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -es-module-lexer 1.3.1 +es-module-lexer 1.4.1 MIT MIT License ----------- @@ -16852,7 +16875,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -es-set-tostringtag 2.0.1 +es-set-tostringtag 2.0.2 MIT MIT License @@ -16877,7 +16900,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -es-shim-unscopables 1.0.0 +es-shim-unscopables 1.0.2 MIT MIT License @@ -16953,7 +16976,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -esbuild 0.19.5 +esbuild 0.19.7 MIT MIT License @@ -17205,7 +17228,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -eslint-plugin-import 2.28.1 +eslint-plugin-import 2.29.0 MIT The MIT License (MIT) @@ -17313,7 +17336,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -eslint-plugin-vue 9.17.0 +eslint-plugin-vue 9.18.1 MIT MIT License @@ -18079,7 +18102,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -eslint 8.51.0 +eslint 8.54.0 MIT Copyright OpenJS Foundation and other contributors, @@ -18771,7 +18794,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -fake-indexeddb 4.0.2 +fake-indexeddb 5.0.1 Apache-2.0 Apache License Version 2.0, January 2004 @@ -19034,7 +19057,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -fast-glob 3.3.1 +fast-glob 3.3.2 MIT The MIT License (MIT) @@ -19130,32 +19153,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -fault 2.0.1 -MIT -(The MIT License) - -Copyright (c) 2015 Titus Wormer - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - fflate 0.8.1 MIT MIT License @@ -19294,7 +19291,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -flat-cache 3.1.1 +flat-cache 3.2.0 MIT The MIT License (MIT) @@ -19400,56 +19397,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -format 0.2.2 -MIT -format -====== - -printf, sprintf, and vsprintf for JavaScript - - -Installation -============ - -npm install format - -The code works in browsers as well, you can copy these functions into your project -or otherwise include them with your other JavaScript. - -Usage -===== - - var format = require('format') - , printf = format.printf - , vsprintf = format.vsprintf - // or if you want to keep it old school - , sprintf = format - - // Print 'hello world' - printf('%s world', 'hello') - - var what = 'life, the universe, and everything' - format('%d is the answer to %s', 42, what) - // => '42 is the answer to life, the universe, and everything' - - vsprintf('%d is the answer to %s', [42, what]) - // => '42 is the answer to life, the universe, and everything' - -Supported format specifiers: b, c, d, f, o, s, x, and X. - -See `man 3 printf` or `man 1 printf` for details. - -Precision is supported for floating point numbers. - -License -======= - -Copyright 2010 - 2014 Sami Samhuri sami@samhuri.net - -[MIT license](http://sjs.mit-license.org) - - - fraction.js 4.3.7 MIT MIT License @@ -19741,7 +19688,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -get-intrinsic 1.2.1 +get-intrinsic 1.2.2 MIT MIT License @@ -19942,11 +19889,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -git-url-parse 13.1.0 +git-url-parse 13.1.1 MIT The MIT License (MIT) -Copyright (c) 2015-22 Ionică Bizău (https://ionicabizau.net) +Copyright (c) 2015-23 Ionică Bizău (https://ionicabizau.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -20147,7 +20094,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -global-dirs 3.0.1 +global-directory 4.0.1 MIT MIT License @@ -20224,7 +20171,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -globby 13.2.2 +globby 14.0.0 MIT MIT License @@ -20316,7 +20263,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -h3 1.8.2 +h3 1.9.0 MIT MIT License @@ -20341,7 +20288,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -happy-dom 12.9.1 +happy-dom 12.10.3 MIT MIT License @@ -20417,7 +20364,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -has-property-descriptors 1.0.0 +has-property-descriptors 1.0.1 MIT MIT License @@ -20535,32 +20482,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -has 1.0.4 -MIT -Copyright (c) 2013 Thiago de Arruda - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - - hash-sum 2.0.0 MIT The MIT License (MIT) @@ -20610,7 +20531,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-from-parse5 7.1.2 +hast-util-from-html 2.0.1 +MIT +(The MIT License) + +Copyright (c) 2022 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +hast-util-from-parse5 8.0.1 MIT (The MIT License) @@ -20636,7 +20583,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-parse-selector 3.1.1 +hast-util-parse-selector 4.0.0 MIT (The MIT License) @@ -20662,7 +20609,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-raw 7.2.3 +hast-util-raw 9.0.1 MIT (The MIT License) @@ -20688,7 +20635,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-sanitize 4.1.0 +hast-util-sanitize 5.0.1 MIT (The MIT License) @@ -20714,7 +20661,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-to-html 8.0.4 +hast-util-to-html 9.0.0 MIT (The MIT License) @@ -20740,7 +20687,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-to-parse5 7.1.0 +hast-util-to-parse5 8.0.0 MIT (The MIT License) @@ -20766,9 +20713,9 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hast-util-to-string 2.0.0 +hast-util-to-string 3.0.0 MIT - + # hast-util-to-string @@ -20776,26 +20723,65 @@ MIT [![Coverage][coverage-badge]][coverage] [![Downloads][downloads-badge]][downloads] [![Size][size-badge]][size] -[![Sponsors][sponsors-badge]][collective] -[![Backers][backers-badge]][collective] +[![Sponsors][funding-sponsors-badge]][funding] +[![Backers][funding-backers-badge]][funding] [![Chat][chat-badge]][chat] -Get the plain-text value of a hast node. +[`hast`][hast] utility to get the plain-text value of a node. -## Install +## Contents -This package is [ESM only][esm]: -Node 12+ is needed to use it and it must be `imported`ed instead of `required`d. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`toString(node)`](#tostringnode) +* [Syntax](#syntax) +* [Syntax tree](#syntax-tree) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) + +## What is this? + +This package is a utility to get the plain-text value of a node. + +## When should I use this? + +You can use this package when you want to get the plain text value of a node. +The algorithm used by this package is like the DOMs `Node#textContent` +getter. + +To use the DOMs `Node#innerText` algorithm instead, use +[`hast-util-to-text`](https://github.com/syntax-tree/hast-util-to-text). +`innerText` is aware of how things are displayed, for example turning hard +breaks (`
`) into line endings. + +## Install -[npm][]: +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: ```sh npm install hast-util-to-string ``` -This package exports the following identifiers: -`toString`. -There is no default export. +In Deno with [`esm.sh`][esm-sh]: + +```js +import {toString} from 'https://esm.sh/hast-util-to-string@3' +``` + +In browsers with [`esm.sh`][esm-sh]: + +```html + +``` ## Use @@ -20811,9 +20797,51 @@ toString(h('div', [h('b', 'Bold'), ' and ', h('i', 'italic'), '.'])) ## API +This package exports the identifier +`toString`. +There is no default export. + ### `toString(node)` -Transform a node to a string. +Get the plain-text value of a node. + +###### Parameters + +* `node` (`Node`) — node to serialize + +###### Returns + +Serialized node (`string`). + +## Syntax + +HTML is parsed according to WHATWG HTML (the living standard), which is also +followed by all browsers. + +## Syntax tree + +The syntax tree used is [hast][]. + +## Types + +This package is fully typed with [TypeScript][]. + +## Compatibility + +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. + +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`hast-util-to-string@^3`, +compatible with Node.js 16. + +## Security + +As **rehype** works on HTML and improper use of HTML can open you up to a +[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe. +Use [`rehype-sanitize`][rehype-sanitize] to make the tree safe. ## Contribute @@ -20829,50 +20857,60 @@ abide by its terms. [MIT][license] © [Titus Wormer][author] -[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg +[author]: https://wooorm.com [build]: https://github.com/rehypejs/rehype-minify/actions -[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg +[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg + +[chat]: https://github.com/rehypejs/rehype/discussions + +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg + +[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md + +[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md [coverage]: https://codecov.io/github/rehypejs/rehype-minify -[downloads-badge]: https://img.shields.io/npm/dm/hast-util-to-string.svg +[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg [downloads]: https://www.npmjs.com/package/hast-util-to-string -[size-badge]: https://img.shields.io/bundlephobia/minzip/hast-util-to-string.svg +[downloads-badge]: https://img.shields.io/npm/dm/hast-util-to-string.svg -[size]: https://bundlephobia.com/result?p=hast-util-to-string +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[esm-sh]: https://esm.sh -[backers-badge]: https://opencollective.com/unified/backers/badge.svg +[funding]: https://opencollective.com/unified -[collective]: https://opencollective.com/unified +[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg -[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -[chat]: https://github.com/rehypejs/rehype/discussions +[hast]: https://github.com/syntax-tree/hast -[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c +[health]: https://github.com/rehypejs/.github + +[license]: https://github.com/rehypejs/rehype-minify/blob/main/license [npm]: https://docs.npmjs.com/cli/install -[health]: https://github.com/rehypejs/.github +[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize -[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md +[size]: https://bundlejs.com/?q=hast-util-to-string -[support]: https://github.com/rehypejs/.github/blob/main/support.md +[size-badge]: https://img.shields.io/bundlejs/size/hast-util-to-string -[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md +[support]: https://github.com/rehypejs/.github/blob/main/support.md -[license]: https://github.com/rehypejs/rehype-minify/blob/main/license +[typescript]: https://www.typescriptlang.org -[author]: https://wooorm.com +[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting -hast-util-whitespace 2.0.1 +hast-util-whitespace 3.0.0 MIT (The MIT License) @@ -20898,7 +20936,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hastscript 7.2.0 +hastscript 8.0.0 MIT (The MIT License) @@ -20947,39 +20985,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -highlight.js 11.8.0 -BSD-3-Clause -BSD 3-Clause License - -Copyright (c) 2006, Ivan Sagalaev. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - highlight.js 11.9.0 BSD-3-Clause BSD 3-Clause License @@ -21102,7 +21107,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -html-void-elements 2.0.1 +html-void-elements 3.0.0 MIT (The MIT License) @@ -22173,7 +22178,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -ignore 5.2.4 +ignore 5.3.0 MIT Copyright (c) 2013 Kael Zhang , contributors http://kael.me/ @@ -22197,18 +22202,32 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -image-meta 0.1.1 +image-meta 0.2.0 MIT The MIT License (MIT) -Copyright © 2017 Aditya Yadav, http://netroy.in -Copyright @ 2020 Nuxt Contrib +Copyright (c) Pooya Parsa -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Based on https://github.com/image-size/image-size +Copyright © Aditya Yadav, http://netroy.in -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. immutable 4.3.4 @@ -22446,7 +22465,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -ini 2.0.0 +ini 4.1.1 ISC The ISC License @@ -22465,7 +22484,7 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -internal-slot 1.0.5 +internal-slot 1.0.6 MIT MIT License @@ -22643,7 +22662,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -iron-webcrypto 0.10.1 +iron-webcrypto 1.0.0 MIT MIT License @@ -22833,31 +22852,6 @@ SOFTWARE. -is-buffer 2.0.5 -MIT -The MIT License (MIT) - -Copyright (c) Feross Aboukhadijeh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - is-builtin-module 3.2.1 MIT MIT License @@ -22897,29 +22891,6 @@ SOFTWARE. -is-core-module 2.13.0 -MIT -The MIT License (MIT) - -Copyright (c) 2014 Dave Justice - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - is-core-module 2.13.1 MIT The MIT License (MIT) @@ -23123,7 +23094,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -is-installed-globally 0.4.0 +is-installed-globally 1.0.0 MIT MIT License @@ -23294,6 +23265,19 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +is-path-inside 4.0.0 +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + is-plain-obj 4.1.0 MIT MIT License @@ -23921,7 +23905,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -js-beautify 1.14.9 +js-beautify 1.14.11 MIT The MIT License (MIT) @@ -25799,7 +25783,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -lowlight 2.9.0 +lowlight 3.1.0 MIT (The MIT License) @@ -25825,7 +25809,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -lru-cache 10.0.1 +lru-cache 10.0.3 ISC The ISC License @@ -25937,7 +25921,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -magicast 0.3.1 +magicast 0.3.2 MIT MIT License @@ -26021,33 +26005,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-definitions 5.1.2 -MIT -(The MIT License) - -Copyright (c) 2015-2016 Titus Wormer - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -mdast-util-find-and-replace 2.2.2 +mdast-util-find-and-replace 3.0.1 MIT (The MIT License) @@ -26099,7 +26057,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm-autolink-literal 1.0.3 +mdast-util-from-markdown 2.0.0 MIT (The MIT License) @@ -26125,7 +26083,33 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm-footnote 1.0.2 +mdast-util-gfm-autolink-literal 2.0.0 +MIT +(The MIT License) + +Copyright (c) 2020 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +mdast-util-gfm-footnote 2.0.0 MIT (The MIT License) @@ -26151,7 +26135,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm-strikethrough 1.0.3 +mdast-util-gfm-strikethrough 2.0.0 MIT (The MIT License) @@ -26177,7 +26161,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm-table 1.0.7 +mdast-util-gfm-table 2.0.0 MIT (The MIT License) @@ -26203,7 +26187,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm-task-list-item 1.0.2 +mdast-util-gfm-task-list-item 2.0.0 MIT (The MIT License) @@ -26229,7 +26213,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-gfm 2.0.2 +mdast-util-gfm 3.0.0 MIT (The MIT License) @@ -26255,7 +26239,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-phrasing 3.0.1 +mdast-util-phrasing 4.0.0 MIT (The MIT License) @@ -26282,7 +26266,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-to-hast 12.3.0 +mdast-util-to-hast 13.0.2 MIT (The MIT License) @@ -26308,7 +26292,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -mdast-util-to-markdown 1.5.0 +mdast-util-to-markdown 2.1.0 MIT (The MIT License) @@ -26360,6 +26344,32 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +mdast-util-to-string 4.0.0 +MIT +(The MIT License) + +Copyright (c) 2015 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + mdn-data 2.0.28 CC0-1.0 CC0 1.0 Universal @@ -26848,85 +26858,182 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -micromark-extension-directive 2.2.1 +micromark-core-commonmark 2.0.0 MIT -(The MIT License) +# micromark-core-commonmark -Copyright (c) 2020 Titus Wormer +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +[micromark][] constructs that make up the core of CommonMark. +Some of these can be [turned off][disable], but they are often essential to +markdown and weird things might happen. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Contents -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) +## What is this? -micromark-extension-gfm-autolink-literal 1.0.5 -MIT -(The MIT License) +This package exposes the default constructs. -Copyright (c) 2020 Titus Wormer +## When should I use this? -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +This package is useful when you are making your own micromark extensions. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Install -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: +```sh +npm install micromark-core-commonmark +``` -micromark-extension-gfm-footnote 1.1.2 -MIT -(The MIT License) +In Deno with [`esm.sh`][esmsh]: -Copyright (c) 2021 Titus Wormer +```js +import * as core from 'https://esm.sh/micromark-core-commonmark@1' +``` -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +In browsers with [`esm.sh`][esmsh]: -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +```html + +``` -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## Use + +```js +import {autolink} from 'micromark-core-commonmark' + +console.log(autolink) // Do things with `autolink`. +``` + +## API + +This module exports the following identifiers: `attention`, `autolink`, +`blankLine`, `blockQuote`, `characterEscape`, `characterReference`, +`codeFenced`, `codeIndented`, `codeText`, `content`, `definition`, +`hardBreakEscape`, `headingAtx`, `htmlFlow`, `htmlText`, `labelEnd`, +`labelStartImage`, `labelStartLink`, `lineEnding`, `list`, `setextUnderline`, +`thematicBreak`. +There is no default export. + +Each identifier refers to a [construct][]. + +See the code for more on the exported constructs. + +## Types + +This package is fully typed with [TypeScript][]. +It exports no additional types. + +## Compatibility + +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. + +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-core-commonmark@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. + +## Security + +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. + +## Contribute + +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. + +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. + +## License + +[MIT][license] © [Titus Wormer][author] + + + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg + +[build]: https://github.com/micromark/micromark/actions + +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg + +[coverage]: https://codecov.io/github/micromark/micromark + +[downloads-badge]: https://img.shields.io/npm/dm/micromark-core-commonmark.svg + +[downloads]: https://www.npmjs.com/package/micromark-core-commonmark + +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-core-commonmark + +[bundle-size]: https://bundlejs.com/?q=micromark-core-commonmark + +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg + +[backers-badge]: https://opencollective.com/unified/backers/badge.svg + +[opencollective]: https://opencollective.com/unified + +[npm]: https://docs.npmjs.com/cli/install + +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c + +[esmsh]: https://esm.sh + +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg + +[chat]: https://github.com/micromark/micromark/discussions + +[license]: https://github.com/micromark/micromark/blob/main/license + +[author]: https://wooorm.com + +[health]: https://github.com/micromark/.github + +[securitymd]: https://github.com/micromark/.github/blob/main/security.md + +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md + +[support]: https://github.com/micromark/.github/blob/main/support.md + +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md + +[disable]: https://github.com/micromark/micromark#case-turn-off-constructs + +[construct]: https://github.com/micromark/micromark#constructs + +[typescript]: https://www.typescriptlang.org + +[micromark]: https://github.com/micromark/micromark -micromark-extension-gfm-strikethrough 1.0.7 +micromark-extension-gfm-autolink-literal 2.0.0 MIT (The MIT License) @@ -26952,11 +27059,11 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -micromark-extension-gfm-table 1.0.7 +micromark-extension-gfm-footnote 2.0.0 MIT (The MIT License) -Copyright (c) 2020 Titus Wormer +Copyright (c) 2021 Titus Wormer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -26978,7 +27085,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -micromark-extension-gfm-tagfilter 1.0.2 +micromark-extension-gfm-strikethrough 2.0.0 MIT (The MIT License) @@ -27004,7 +27111,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -micromark-extension-gfm-task-list-item 1.0.5 +micromark-extension-gfm-table 2.0.0 MIT (The MIT License) @@ -27030,7 +27137,59 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -micromark-extension-gfm 2.0.3 +micromark-extension-gfm-tagfilter 2.0.0 +MIT +(The MIT License) + +Copyright (c) 2020 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +micromark-extension-gfm-task-list-item 2.0.1 +MIT +(The MIT License) + +Copyright (c) 2020 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +micromark-extension-gfm 3.0.0 MIT (The MIT License) @@ -27292,9 +27451,9 @@ abide by its terms. [api-factory-destination]: #factorydestination -micromark-factory-label 1.1.0 +micromark-factory-destination 2.0.0 MIT -# micromark-factory-label +# micromark-factory-destination [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -27304,7 +27463,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] factory to parse labels (found in media, definitions). +[micromark][] factory to parse destinations (found in resources, definitions). ## Contents @@ -27313,7 +27472,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`factoryLabel(…)`](#factorylabel) + * [`factoryDestination(…)`](#factorydestination) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -27322,7 +27481,7 @@ MIT ## What is this? -This package exposes states to parse labels. +This package exposes states to parse destinations. ## When should I use this? @@ -27334,53 +27493,55 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-factory-label +npm install micromark-factory-destination ``` In Deno with [`esm.sh`][esmsh]: ```js -import {factoryLabel} from 'https://esm.sh/micromark-factory-label@1' +import {factoryDestination} from 'https://esm.sh/micromark-factory-destination@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {ok as assert} from 'uvu/assert' -import {factoryLabel} from 'micromark-factory-label' -import {codes} from 'micromark-util-symbol/codes' -import {types} from 'micromark-util-symbol/types' +import {factoryDestination} from 'micromark-factory-destination' +import {codes, types} from 'micromark-util-symbol' // A micromark tokenizer that uses the factory: /** * @this {TokenizeContext} * @type {Tokenizer} */ -function tokenizeDefinition(effects, ok, nok) { +function tokenizeResource(effects, ok, nok) { return start // … /** @type {State} */ - function start(code) { - assert(code === codes.leftSquareBracket, 'expected `[`') - effects.enter(types.definition) - return factoryLabel.call( - self, + function open(code) { + if (code === codes.rightParenthesis) { + return end(code) + } + + return factoryDestination( effects, - labelAfter, + destinationAfter, nok, - types.definitionLabel, - types.definitionLabelMarker, - types.definitionLabelString + types.resourceDestination, + types.resourceDestinationLiteral, + types.resourceDestinationLiteralMarker, + types.resourceDestinationRaw, + types.resourceDestinationString, + constants.linkResourceDestinationBalanceMax )(code) } @@ -27390,28 +27551,29 @@ function tokenizeDefinition(effects, ok, nok) { ## API -This module exports the identifier [`factoryLabel`][api-factory-label]. +This module exports the identifier +[`factoryDestination`][api-factory-destination]. There is no default export. -### `factoryLabel(…)` - -Parse labels. +### `factoryDestination(…)` -> 👉 **Note**: labels in markdown are capped at 999 characters in the string. +Parse destinations. ###### Examples ```markdown -[a] -[a -b] -[a\]b] + +b> + + +a +a\)b +a(b)c +a(b) ``` ###### Parameters -* `this` (`TokenizeContext`) - — tokenize context * `effects` (`Effects`) — context * `ok` (`State`) @@ -27419,11 +27581,17 @@ b] * `nok` (`State`) — state switched to when unsuccessful * `type` (`string`) - — type of the whole label (`[a]`) -* `markerType` (`string`) - — type for the markers (`[` and `]`) + — type for whole (`` or `b`) +* `literalType` (`string`) + — type when enclosed (``) +* `literalMarkerType` (`string`) + — type for enclosing (`<` and `>`) +* `rawType` (`string`) + — type when not enclosed (`b`) * `stringType` (`string`) - — type for the identifier (`a`) + — type for the value (`a` or `b`) +* `max` (`number`, default: `Infinity`) + — depth of nested parens (inclusive) ###### Returns @@ -27436,12 +27604,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-factory-destination@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -27473,13 +27643,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-label.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-destination.svg -[downloads]: https://www.npmjs.com/package/micromark-factory-label +[downloads]: https://www.npmjs.com/package/micromark-factory-destination -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-label +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-destination -[bundle-size]: https://bundlejs.com/?q=micromark-factory-label +[bundle-size]: https://bundlejs.com/?q=micromark-factory-destination [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -27515,12 +27685,12 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-factory-label]: #factorylabel +[api-factory-destination]: #factorydestination -micromark-factory-space 1.1.0 +micromark-factory-label 1.1.0 MIT -# micromark-factory-space +# micromark-factory-label [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -27530,8 +27700,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] factory to parse [markdown space][markdown-space] (found in lots -of places). +[micromark][] factory to parse labels (found in media, definitions). ## Contents @@ -27540,7 +27709,7 @@ of places). * [Install](#install) * [Use](#use) * [API](#api) - * [`factorySpace(…)`](#factoryspace) + * [`factoryLabel(…)`](#factorylabel) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -27549,7 +27718,7 @@ of places). ## What is this? -This package exposes states to parse spaces and/or tabs. +This package exposes states to parse labels. ## When should I use this? @@ -27561,27 +27730,28 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-factory-space +npm install micromark-factory-label ``` In Deno with [`esm.sh`][esmsh]: ```js -import {factorySpace} from 'https://esm.sh/micromark-factory-space@1' +import {factoryLabel} from 'https://esm.sh/micromark-factory-label@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {factorySpace} from 'micromark-factory-space' +import {ok as assert} from 'uvu/assert' +import {factoryLabel} from 'micromark-factory-label' import {codes} from 'micromark-util-symbol/codes' import {types} from 'micromark-util-symbol/types' @@ -27590,22 +27760,24 @@ import {types} from 'micromark-util-symbol/types' * @this {TokenizeContext} * @type {Tokenizer} */ -function tokenizeCodeFenced(effects, ok, nok) { +function tokenizeDefinition(effects, ok, nok) { return start // … /** @type {State} */ - function info(code) { - if (code === codes.eof || markdownLineEndingOrSpace(code)) { - effects.exit(types.chunkString) - effects.exit(types.codeFencedFenceInfo) - return factorySpace(effects, infoAfter, types.whitespace)(code) - } - - if (code === codes.graveAccent && code === marker) return nok(code) - effects.consume(code) - return info + function start(code) { + assert(code === codes.leftSquareBracket, 'expected `[`') + effects.enter(types.definition) + return factoryLabel.call( + self, + effects, + labelAfter, + nok, + types.definitionLabel, + types.definitionLabelMarker, + types.definitionLabelString + )(code) } // … @@ -27614,41 +27786,40 @@ function tokenizeCodeFenced(effects, ok, nok) { ## API -This module exports the identifier [`factorySpace`][api-factory-space]. +This module exports the identifier [`factoryLabel`][api-factory-label]. There is no default export. -### `factorySpace(…)` - -Parse spaces and tabs. +### `factoryLabel(…)` -There is no `nok` parameter: +Parse labels. -* spaces in markdown are often optional, in which case this factory can be - used and `ok` will be switched to whether spaces were found or not -* one line ending or space can be detected with `markdownSpace(code)` right - before using `factorySpace` +> 👉 **Note**: labels in markdown are capped at 999 characters in the string. ###### Examples -Where `␉` represents a tab (plus how much it expands) and `␠` represents a -single space. - ```markdown -␉ -␠␠␠␠ -␉␠ +[a] +[a +b] +[a\]b] ``` ###### Parameters +* `this` (`TokenizeContext`) + — tokenize context * `effects` (`Effects`) — context * `ok` (`State`) — state switched to when successful +* `nok` (`State`) + — state switched to when unsuccessful * `type` (`string`) - — type (`' \t'`) -* `max` (`number`, default: `Infinity`) - — max (exclusive) + — type of the whole label (`[a]`) +* `markerType` (`string`) + — type for the markers (`[` and `]`) +* `stringType` (`string`) + — type for the identifier (`a`) ###### Returns @@ -27698,13 +27869,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-space.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-label.svg -[downloads]: https://www.npmjs.com/package/micromark-factory-space +[downloads]: https://www.npmjs.com/package/micromark-factory-label -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-space +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-label -[bundle-size]: https://bundlejs.com/?q=micromark-factory-space +[bundle-size]: https://bundlejs.com/?q=micromark-factory-label [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -27736,18 +27907,16 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -[markdown-space]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownspacecode - [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[api-factory-space]: #factoryspace +[api-factory-label]: #factorylabel -micromark-factory-title 1.1.0 +micromark-factory-label 2.0.0 MIT -# micromark-factory-title +# micromark-factory-label [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -27757,8 +27926,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] factory to parse markdown titles (found in resources, -definitions). +[micromark][] factory to parse labels (found in media, definitions). ## Contents @@ -27767,7 +27935,7 @@ definitions). * [Install](#install) * [Use](#use) * [API](#api) - * [`factoryTitle(…)`](#factorytitle) + * [`factoryLabel(…)`](#factorylabel) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -27776,7 +27944,7 @@ definitions). ## What is this? -This package exposes states to parse titles. +This package exposes states to parse labels. ## When should I use this? @@ -27788,29 +27956,29 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-factory-title +npm install micromark-factory-label ``` In Deno with [`esm.sh`][esmsh]: ```js -import {factorySpace} from 'https://esm.sh/micromark-factory-title@1' +import {factoryLabel} from 'https://esm.sh/micromark-factory-label@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {factoryTitle} from 'micromark-factory-title' -import {codes} from 'micromark-util-symbol/codes' -import {types} from 'micromark-util-symbol/types' +import {ok as assert} from 'devlop' +import {factoryLabel} from 'micromark-factory-label' +import {codes, types} from 'micromark-util-symbol' // A micromark tokenizer that uses the factory: /** @@ -27823,23 +27991,18 @@ function tokenizeDefinition(effects, ok, nok) { // … /** @type {State} */ - function before(code) { - if ( - code === codes.quotationMark || - code === codes.apostrophe || - code === codes.leftParenthesis - ) { - return factoryTitle( - effects, - factorySpace(effects, after, types.whitespace), - nok, - types.definitionTitle, - types.definitionTitleMarker, - types.definitionTitleString - )(code) - } - - return nok(code) + function start(code) { + assert(code === codes.leftSquareBracket, 'expected `[`') + effects.enter(types.definition) + return factoryLabel.call( + self, + effects, + labelAfter, + nok, + types.definitionLabel, + types.definitionLabelMarker, + types.definitionLabelString + )(code) } // … @@ -27848,28 +28011,28 @@ function tokenizeDefinition(effects, ok, nok) { ## API -This module exports the identifier [`factoryTitle`][api-factory-title]. +This module exports the identifier [`factoryLabel`][api-factory-label]. There is no default export. -### `factoryTitle(…)` +### `factoryLabel(…)` -Parse titles. +Parse labels. + +> 👉 **Note**: labels in markdown are capped at 999 characters in the string. ###### Examples ```markdown -"a" -'b' -(c) -"a -b" -'a - b' -(a\)b) +[a] +[a +b] +[a\]b] ``` ###### Parameters +* `this` (`TokenizeContext`) + — tokenize context * `effects` (`Effects`) — context * `ok` (`State`) @@ -27877,11 +28040,11 @@ b" * `nok` (`State`) — state switched to when unsuccessful * `type` (`string`) - — type of the whole title (`"a"`, `'b'`, `(c)`) + — type of the whole label (`[a]`) * `markerType` (`string`) - — type for the markers (`"`, `'`, `(`, and `)`) + — type for the markers (`[` and `]`) * `stringType` (`string`) - — type for the value (`a`) + — type for the identifier (`a`) ###### Returns @@ -27894,12 +28057,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-factory-label@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -27931,13 +28096,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-title.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-label.svg -[downloads]: https://www.npmjs.com/package/micromark-factory-title +[downloads]: https://www.npmjs.com/package/micromark-factory-label -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-title +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-label -[bundle-size]: https://bundlejs.com/?q=micromark-factory-title +[bundle-size]: https://bundlejs.com/?q=micromark-factory-label [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -27973,12 +28138,12 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-factory-title]: #factorytitle +[api-factory-label]: #factorylabel -micromark-factory-whitespace 1.1.0 +micromark-factory-space 1.1.0 MIT -# micromark-factory-whitespace +# micromark-factory-space [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -27988,8 +28153,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] factory to parse [markdown line endings or spaces][ws] (found in -lots of places). +[micromark][] factory to parse [markdown space][markdown-space] (found in lots +of places). ## Contents @@ -27998,7 +28163,7 @@ lots of places). * [Install](#install) * [Use](#use) * [API](#api) - * [`factoryWhitespace(…)`](#factorywhitespace) + * [`factorySpace(…)`](#factoryspace) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -28007,7 +28172,7 @@ lots of places). ## What is this? -This package exposes states to parse whitespace. +This package exposes states to parse spaces and/or tabs. ## When should I use this? @@ -28019,27 +28184,27 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-factory-whitespace +npm install micromark-factory-space ``` In Deno with [`esm.sh`][esmsh]: ```js -import {factoryWhitespace} from 'https://esm.sh/micromark-factory-whitespace@1' +import {factorySpace} from 'https://esm.sh/micromark-factory-space@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {factoryWhitespace} from 'micromark-factory-whitespace' +import {factorySpace} from 'micromark-factory-space' import {codes} from 'micromark-util-symbol/codes' import {types} from 'micromark-util-symbol/types' @@ -28048,14 +28213,22 @@ import {types} from 'micromark-util-symbol/types' * @this {TokenizeContext} * @type {Tokenizer} */ -function tokenizeTitle(effects, ok, nok) { +function tokenizeCodeFenced(effects, ok, nok) { return start + // … + /** @type {State} */ - function start(code) { - return markdownLineEndingOrSpace(code) - ? factoryWhitespace(effects, before)(code) - : nok(code) + function info(code) { + if (code === codes.eof || markdownLineEndingOrSpace(code)) { + effects.exit(types.chunkString) + effects.exit(types.codeFencedFenceInfo) + return factorySpace(effects, infoAfter, types.whitespace)(code) + } + + if (code === codes.graveAccent && code === marker) return nok(code) + effects.consume(code) + return info } // … @@ -28064,22 +28237,30 @@ function tokenizeTitle(effects, ok, nok) { ## API -This module exports the identifier -[`factoryWhitespace`][api-factory-whitespace]. +This module exports the identifier [`factorySpace`][api-factory-space]. There is no default export. -### `factoryWhitespace(…)` +### `factorySpace(…)` Parse spaces and tabs. There is no `nok` parameter: -* line endings or spaces in markdown are often optional, in which case this - factory can be used and `ok` will be switched to whether spaces were found - or not -* one line ending or space can be detected with - [`markdownLineEndingOrSpace(code)`][ws] right before using - `factoryWhitespace` +* spaces in markdown are often optional, in which case this factory can be + used and `ok` will be switched to whether spaces were found or not +* one line ending or space can be detected with `markdownSpace(code)` right + before using `factorySpace` + +###### Examples + +Where `␉` represents a tab (plus how much it expands) and `␠` represents a +single space. + +```markdown +␉ +␠␠␠␠ +␉␠ +``` ###### Parameters @@ -28087,6 +28268,10 @@ There is no `nok` parameter: — context * `ok` (`State`) — state switched to when successful +* `type` (`string`) + — type (`' \t'`) +* `max` (`number`, default: `Infinity`) + — max (exclusive) ###### Returns @@ -28136,13 +28321,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-whitespace.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-space.svg -[downloads]: https://www.npmjs.com/package/micromark-factory-whitespace +[downloads]: https://www.npmjs.com/package/micromark-factory-space -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-whitespace +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-space -[bundle-size]: https://bundlejs.com/?q=micromark-factory-whitespace +[bundle-size]: https://bundlejs.com/?q=micromark-factory-space [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -28174,18 +28359,18 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -[ws]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownlineendingorspacecode +[markdown-space]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownspacecode [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[api-factory-whitespace]: #factorywhitespace +[api-factory-space]: #factoryspace -micromark-util-character 1.2.0 +micromark-factory-space 2.0.0 MIT -# micromark-util-character +# micromark-factory-space [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -28195,7 +28380,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to handle [character codes][code]. +[micromark][] factory to parse [markdown space][markdown-space] (found in lots +of places). ## Contents @@ -28204,18 +28390,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`asciiAlpha(code)`](#asciialphacode) - * [`asciiAlphanumeric(code)`](#asciialphanumericcode) - * [`asciiAtext(code)`](#asciiatextcode) - * [`asciiControl(code)`](#asciicontrolcode) - * [`asciiDigit(code)`](#asciidigitcode) - * [`asciiHexDigit(code)`](#asciihexdigitcode) - * [`asciiPunctuation(code)`](#asciipunctuationcode) - * [`markdownLineEnding(code)`](#markdownlineendingcode) - * [`markdownLineEndingOrSpace(code)`](#markdownlineendingorspacecode) - * [`markdownSpace(code)`](#markdownspacecode) - * [`unicodePunctuation(code)`](#unicodepunctuationcode) - * [`unicodeWhitespace(code)`](#unicodewhitespacecode) + * [`factorySpace(…)`](#factoryspace) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -28224,11 +28399,11 @@ MIT ## What is this? -This package exposes algorithms to check whether characters match groups. +This package exposes states to parse spaces and/or tabs. ## When should I use this? -This package might be useful when you are making your own micromark extensions. +This package is useful when you are making your own micromark extensions. ## Install @@ -28236,287 +28411,332 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-character +npm install micromark-factory-space ``` In Deno with [`esm.sh`][esmsh]: ```js -import * as character from 'https://esm.sh/micromark-util-character@1' +import {factorySpace} from 'https://esm.sh/micromark-factory-space@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {asciiAlpha} from 'micromark-util-character' - -console.log(asciiAlpha(64)) // false -console.log(asciiAlpha(65)) // true -``` +import {factorySpace} from 'micromark-factory-space' +import {codes, types} from 'micromark-util-symbol' -## API +// A micromark tokenizer that uses the factory: +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeCodeFenced(effects, ok, nok) { + return start -This module exports the identifiers -[`asciiAlpha`][api-ascii-alpha], -[`asciiAlphanumeric`][api-ascii-alphanumeric], -[`asciiAtext`][api-ascii-atext], -[`asciiControl`][api-ascii-control], -[`asciiDigit`][api-ascii-digit], -[`asciiHexDigit`][api-ascii-hex-digit], -[`asciiPunctuation`][api-ascii-punctuation], -[`markdownLineEnding`][api-markdown-line-ending], -[`markdownLineEndingOrSpace`][api-markdown-line-ending-or-space], -[`markdownSpace`][api-markdown-space], -[`unicodePunctuation`][api-unicode-punctuation], -[`unicodeWhitespace`][api-unicode-whitespace]. -There is no default export. + // … -### `asciiAlpha(code)` + /** @type {State} */ + function info(code) { + if (code === codes.eof || markdownLineEndingOrSpace(code)) { + effects.exit(types.chunkString) + effects.exit(types.codeFencedFenceInfo) + return factorySpace(effects, infoAfter, types.whitespace)(code) + } -Check whether the [character code][code] represents an ASCII alpha (`a` through -`z`, case insensitive). + if (code === codes.graveAccent && code === marker) return nok(code) + effects.consume(code) + return info + } -An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha. + // … +} +``` -An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`) -to U+005A (`Z`). +## API -An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`) -to U+007A (`z`). +This module exports the identifier [`factorySpace`][api-factory-space]. +There is no default export. -###### Parameters +### `factorySpace(…)` -* `code` (`Code`) - — code +Parse spaces and tabs. -###### Returns +There is no `nok` parameter: -Whether it matches (`boolean`). +* spaces in markdown are often optional, in which case this factory can be + used and `ok` will be switched to whether spaces were found or not +* one line ending or space can be detected with `markdownSpace(code)` right + before using `factorySpace` -### `asciiAlphanumeric(code)` +###### Examples -Check whether the [character code][code] represents an ASCII alphanumeric (`a` -through `z`, case insensitive, or `0` through `9`). +Where `␉` represents a tab (plus how much it expands) and `␠` represents a +single space. -An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha -(see `asciiAlpha`). +```markdown +␉ +␠␠␠␠ +␉␠ +``` ###### Parameters -* `code` (`Code`) - — code +* `effects` (`Effects`) + — context +* `ok` (`State`) + — state switched to when successful +* `type` (`string`) + — type (`' \t'`) +* `max` (`number`, default: `Infinity`) + — max (exclusive) ###### Returns -Whether it matches (`boolean`). - -### `asciiAtext(code)` - -Check whether the [character code][code] represents an ASCII atext. - -atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in -the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`), -U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F -SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E -CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE -(`{`) to U+007E TILDE (`~`) (**\[RFC5322]**). +Start state (`State`). -See **\[RFC5322]**:\ -[Internet Message Format](https://tools.ietf.org/html/rfc5322).\ -P. Resnick.\ -IETF. +## Types -###### Parameters +This package is fully typed with [TypeScript][]. +It exports no additional types. -* `code` (`Code`) - — code +## Compatibility -###### Returns +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -Whether it matches (`boolean`). +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-factory-space@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -### `asciiControl(code)` +## Security -Check whether a [character code][code] is an ASCII control character. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL) -to U+001F (US), or U+007F (DEL). +## Contribute -###### Parameters +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -* `code` (`Code`) - — code +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -###### Returns +## License -Whether it matches (`boolean`). +[MIT][license] © [Titus Wormer][author] -### `asciiDigit(code)` + -Check whether the [character code][code] represents an ASCII digit (`0` through -`9`). +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to -U+0039 (`9`). +[build]: https://github.com/micromark/micromark/actions -###### Parameters +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -* `code` (`Code`) - — code +[coverage]: https://codecov.io/github/micromark/micromark -###### Returns +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-space.svg -Whether it matches (`boolean`). +[downloads]: https://www.npmjs.com/package/micromark-factory-space -### `asciiHexDigit(code)` +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-space -Check whether the [character code][code] represents an ASCII hex digit (`a` -through `f`, case insensitive, or `0` through `9`). +[bundle-size]: https://bundlejs.com/?q=micromark-factory-space -An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex -digit, or an ASCII lower hex digit. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -An **ASCII upper hex digit** is a character in the inclusive range U+0041 -(`A`) to U+0046 (`F`). +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -An **ASCII lower hex digit** is a character in the inclusive range U+0061 -(`a`) to U+0066 (`f`). +[opencollective]: https://opencollective.com/unified -###### Parameters +[npm]: https://docs.npmjs.com/cli/install -* `code` (`Code`) - — code +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -###### Returns +[esmsh]: https://esm.sh -Whether it matches (`boolean`). +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -### `asciiPunctuation(code)` +[chat]: https://github.com/micromark/micromark/discussions -Check whether the [character code][code] represents ASCII punctuation. +[license]: https://github.com/micromark/micromark/blob/main/license -An **ASCII punctuation** is a character in the inclusive ranges U+0021 -EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT -SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT -(`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`). +[author]: https://wooorm.com -###### Parameters +[health]: https://github.com/micromark/.github -* `code` (`Code`) - — code +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -###### Returns +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -Whether it matches (`boolean`). +[support]: https://github.com/micromark/.github/blob/main/support.md -### `markdownLineEnding(code)` +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Check whether a [character code][code] is a markdown line ending. +[markdown-space]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownspacecode -A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN -LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR). +[typescript]: https://www.typescriptlang.org -In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE -RETURN (CR) are replaced by these virtual characters depending on whether -they occurred together. +[micromark]: https://github.com/micromark/micromark -###### Parameters +[api-factory-space]: #factoryspace -* `code` (`Code`) - — code -###### Returns +micromark-factory-title 1.1.0 +MIT +# micromark-factory-title -Whether it matches (`boolean`). +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -### `markdownLineEndingOrSpace(code)` +[micromark][] factory to parse markdown titles (found in resources, +definitions). -Check whether a [character code][code] is a markdown line ending (see -`markdownLineEnding`) or markdown space (see `markdownSpace`). +## Contents -###### Parameters +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`factoryTitle(…)`](#factorytitle) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -* `code` (`Code`) - — code +## What is this? -###### Returns +This package exposes states to parse titles. -Whether it matches (`boolean`). +## When should I use this? -### `markdownSpace(code)` +This package is useful when you are making your own micromark extensions. -Check whether a [character code][code] is a markdown space. +## Install -A **markdown space** is the concrete character U+0020 SPACE (SP) and the -virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT). +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is -replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL -SPACE (VS) characters, depending on the column at which the tab occurred. +```sh +npm install micromark-factory-title +``` -###### Parameters +In Deno with [`esm.sh`][esmsh]: -* `code` (`Code`) - — code +```js +import {factorySpace} from 'https://esm.sh/micromark-factory-title@1' +``` -###### Returns +In browsers with [`esm.sh`][esmsh]: -Whether it matches (`boolean`). +```html + +``` -### `unicodePunctuation(code)` +## Use -Check whether the [character code][code] represents Unicode punctuation. +```js +import {factoryTitle} from 'micromark-factory-title' +import {codes} from 'micromark-util-symbol/codes' +import {types} from 'micromark-util-symbol/types' -A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation, -Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf` -(Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po` -(Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII -punctuation (see `asciiPunctuation`) (**\[UNICODE]**). +// A micromark tokenizer that uses the factory: +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeDefinition(effects, ok, nok) { + return start -See **\[UNICODE]**:\ -[The Unicode Standard](https://www.unicode.org/versions/).\ -Unicode Consortium. + // … -###### Parameters + /** @type {State} */ + function before(code) { + if ( + code === codes.quotationMark || + code === codes.apostrophe || + code === codes.leftParenthesis + ) { + return factoryTitle( + effects, + factorySpace(effects, after, types.whitespace), + nok, + types.definitionTitle, + types.definitionTitleMarker, + types.definitionTitleString + )(code) + } -* `code` (`Code`) - — code + return nok(code) + } -###### Returns + // … +} +``` -Whether it matches (`boolean`). +## API -### `unicodeWhitespace(code)` +This module exports the identifier [`factoryTitle`][api-factory-title]. +There is no default export. -Check whether the [character code][code] represents Unicode whitespace. +### `factoryTitle(…)` -Note that this does handle micromark specific markdown whitespace characters. -See `markdownLineEndingOrSpace` to check that. +Parse titles. -A **Unicode whitespace** is a character in the Unicode `Zs` (Separator, -Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), -U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**). +###### Examples -See **\[UNICODE]**:\ -[The Unicode Standard](https://www.unicode.org/versions/).\ -Unicode Consortium. +```markdown +"a" +'b' +(c) +"a +b" +'a + b' +(a\)b) +``` ###### Parameters -* `code` (`Code`) - — code +* `effects` (`Effects`) + — context +* `ok` (`State`) + — state switched to when successful +* `nok` (`State`) + — state switched to when unsuccessful +* `type` (`string`) + — type of the whole title (`"a"`, `'b'`, `(c)`) +* `markerType` (`string`) + — type for the markers (`"`, `'`, `(`, and `)`) +* `stringType` (`string`) + — type for the value (`a`) ###### Returns -Whether it matches (`boolean`). +Start state (`State`). ## Types @@ -28562,13 +28782,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-character.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-title.svg -[downloads]: https://www.npmjs.com/package/micromark-util-character +[downloads]: https://www.npmjs.com/package/micromark-factory-title -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-character +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-title -[bundle-size]: https://bundlejs.com/?q=micromark-util-character +[bundle-size]: https://bundlejs.com/?q=micromark-factory-title [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -28604,46 +28824,23 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[code]: https://github.com/micromark/micromark#preprocess +[api-factory-title]: #factorytitle -[api-ascii-alpha]: #asciialphacode -[api-ascii-alphanumeric]: #asciialphanumericcode +micromark-factory-title 2.0.0 +MIT +# micromark-factory-title -[api-ascii-atext]: #asciiatextcode +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -[api-ascii-control]: #asciicontrolcode - -[api-ascii-digit]: #asciidigitcode - -[api-ascii-hex-digit]: #asciihexdigitcode - -[api-ascii-punctuation]: #asciipunctuationcode - -[api-markdown-line-ending]: #markdownlineendingcode - -[api-markdown-line-ending-or-space]: #markdownlineendingorspacecode - -[api-markdown-space]: #markdownspacecode - -[api-unicode-punctuation]: #unicodepunctuationcode - -[api-unicode-whitespace]: #unicodewhitespacecode - - -micromark-util-chunked 1.1.0 -MIT -# micromark-util-chunked - -[![Build][build-badge]][build] -[![Coverage][coverage-badge]][coverage] -[![Downloads][downloads-badge]][downloads] -[![Size][bundle-size-badge]][bundle-size] -[![Sponsors][sponsors-badge]][opencollective] -[![Backers][backers-badge]][opencollective] -[![Chat][chat-badge]][chat] - -[micromark][] utility to splice and push with giant arrays. +[micromark][] factory to parse markdown titles (found in resources, +definitions). ## Contents @@ -28652,8 +28849,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`push(list, items)`](#pushlist-items) - * [`splice(list, start, remove, items)`](#splicelist-start-remove-items) + * [`factoryTitle(…)`](#factorytitle) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -28662,12 +28858,11 @@ MIT ## What is this? -This package exposes an algorithm to splice for giant arrays, which V8 bugs -out on. +This package exposes states to parse titles. ## When should I use this? -This package might be useful when you are making your own micromark extensions. +This package is useful when you are making your own micromark extensions. ## Install @@ -28675,91 +28870,103 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-chunked +npm install micromark-factory-title ``` In Deno with [`esm.sh`][esmsh]: ```js -import {push, splice} from 'https://esm.sh/micromark-util-chunked@1' +import {factorySpace} from 'https://esm.sh/micromark-factory-title@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {push, splice} from 'micromark-util-chunked' +import {factoryTitle} from 'micromark-factory-title' +import {codes, types} from 'micromark-util-symbol' -// … +// A micromark tokenizer that uses the factory: +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeDefinition(effects, ok, nok) { + return start -nextEvents = push(nextEvents, [ - ['enter', events[open][1], context], - ['exit', events[open][1], context] -]) + // … -// … + /** @type {State} */ + function before(code) { + if ( + code === codes.quotationMark || + code === codes.apostrophe || + code === codes.leftParenthesis + ) { + return factoryTitle( + effects, + factorySpace(effects, after, types.whitespace), + nok, + types.definitionTitle, + types.definitionTitleMarker, + types.definitionTitleString + )(code) + } -splice(events, open - 1, index - open + 3, nextEvents) + return nok(code) + } -// … + // … +} ``` ## API -This module exports the identifiers [`push`][api-push] -and [`splice`][api-splice]. +This module exports the identifier [`factoryTitle`][api-factory-title]. There is no default export. -### `push(list, items)` - -Append `items` (an array) at the end of `list` (another array). -When `list` was empty, returns `items` instead. - -This prevents a potentially expensive operation when `list` is empty, -and adds items in batches to prevent V8 from hanging. - -###### Parameters - -* `list` (`Array`) - — list to operate on -* `items` (`Array`) - — items to add to `list` - -###### Returns - -Either `list` or `items` (`Array`). - -### `splice(list, start, remove, items)` +### `factoryTitle(…)` -Like `Array#splice`, but smarter for giant arrays. +Parse titles. -`Array#splice` takes all items to be inserted as individual argument which -causes a stack overflow in V8 when trying to insert 100k items for instance. +###### Examples -Otherwise, this does not return the removed items, and takes `items` as an -array instead of rest parameters. +```markdown +"a" +'b' +(c) +"a +b" +'a + b' +(a\)b) +``` ###### Parameters -* `list` (`Array`) - — list to operate on -* `start` (`number`) - — index to remove/insert at (can be negative) -* `remove` (`number`) - — number of items to remove -* `items` (`Array`) - — items to inject into `list` +* `effects` (`Effects`) + — context +* `ok` (`State`) + — state switched to when successful +* `nok` (`State`) + — state switched to when unsuccessful +* `type` (`string`) + — type of the whole title (`"a"`, `'b'`, `(c)`) +* `markerType` (`string`) + — type for the markers (`"`, `'`, `(`, and `)`) +* `stringType` (`string`) + — type for the value (`a`) ###### Returns -Nothing (`void`). +Start state (`State`). ## Types @@ -28768,12 +28975,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-factory-title@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -28805,13 +29014,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-chunked.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-title.svg -[downloads]: https://www.npmjs.com/package/micromark-util-chunked +[downloads]: https://www.npmjs.com/package/micromark-factory-title -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-chunked +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-title -[bundle-size]: https://bundlejs.com/?q=micromark-util-chunked +[bundle-size]: https://bundlejs.com/?q=micromark-factory-title [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -28847,14 +29056,12 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-push]: #pushlist-items - -[api-splice]: #splicelist-start-remove-items +[api-factory-title]: #factorytitle -micromark-util-classify-character 1.1.0 +micromark-factory-whitespace 1.1.0 MIT -# micromark-util-classify-character +# micromark-factory-whitespace [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -28864,8 +29071,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to classify whether a character is whitespace or -punctuation. +[micromark][] factory to parse [markdown line endings or spaces][ws] (found in +lots of places). ## Contents @@ -28874,7 +29081,7 @@ punctuation. * [Install](#install) * [Use](#use) * [API](#api) - * [`classifyCharacter(code)`](#classifycharactercode) + * [`factoryWhitespace(…)`](#factorywhitespace) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -28883,11 +29090,11 @@ punctuation. ## What is this? -This package exposes an algorithm to classify characters into 3 categories. +This package exposes states to parse whitespace. ## When should I use this? -This package might be useful when you are making your own micromark extensions. +This package is useful when you are making your own micromark extensions. ## Install @@ -28895,48 +29102,43 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-classify-character +npm install micromark-factory-whitespace ``` In Deno with [`esm.sh`][esmsh]: ```js -import {classifyCharacter} from 'https://esm.sh/micromark-util-classify-character@1' +import {factoryWhitespace} from 'https://esm.sh/micromark-factory-whitespace@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js +import {factoryWhitespace} from 'micromark-factory-whitespace' +import {codes} from 'micromark-util-symbol/codes' +import {types} from 'micromark-util-symbol/types' + +// A micromark tokenizer that uses the factory: /** * @this {TokenizeContext} * @type {Tokenizer} */ -function tokenizeAttention(effects, ok) { +function tokenizeTitle(effects, ok, nok) { return start - // … - /** @type {State} */ - function sequence(code) { - if (code === marker) { - // … - } - - const token = effects.exit('attentionSequence') - const after = classifyCharacter(code) - const open = - !after || (after === constants.characterGroupPunctuation && before) - const close = - !before || (before === constants.characterGroupPunctuation && after) - // … + function start(code) { + return markdownLineEndingOrSpace(code) + ? factoryWhitespace(effects, before)(code) + : nok(code) } // … @@ -28946,28 +29148,32 @@ function tokenizeAttention(effects, ok) { ## API This module exports the identifier -[`classifyCharacter`][api-classify-character]. +[`factoryWhitespace`][api-factory-whitespace]. There is no default export. -### `classifyCharacter(code)` +### `factoryWhitespace(…)` -Classify whether a code represents whitespace, punctuation, or something -else. +Parse spaces and tabs. -Used for attention (emphasis, strong), whose sequences can open or close -based on the class of surrounding characters. +There is no `nok` parameter: -> 👉 **Note**: eof (`null`) is seen as whitespace. +* line endings or spaces in markdown are often optional, in which case this + factory can be used and `ok` will be switched to whether spaces were found + or not +* one line ending or space can be detected with + [`markdownLineEndingOrSpace(code)`][ws] right before using + `factoryWhitespace` ###### Parameters -* `code` (`Code`) - — code +* `effects` (`Effects`) + — context +* `ok` (`State`) + — state switched to when successful ###### Returns -Group (`constants.characterGroupWhitespace`, -`constants.characterGroupPunctuation`, or `undefined`). +Start state (`State`). ## Types @@ -29013,13 +29219,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-classify-character.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-whitespace.svg -[downloads]: https://www.npmjs.com/package/micromark-util-classify-character +[downloads]: https://www.npmjs.com/package/micromark-factory-whitespace -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-classify-character +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-whitespace -[bundle-size]: https://bundlejs.com/?q=micromark-util-classify-character +[bundle-size]: https://bundlejs.com/?q=micromark-factory-whitespace [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -29051,16 +29257,18 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md +[ws]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownlineendingorspacecode + [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[api-classify-character]: #classifycharactercode +[api-factory-whitespace]: #factorywhitespace -micromark-util-combine-extensions 1.1.0 +micromark-factory-whitespace 2.0.0 MIT -# micromark-util-combine-extensions +# micromark-factory-whitespace [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -29070,7 +29278,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to combine [syntax][] or [html][] extensions. +[micromark][] factory to parse [markdown line endings or spaces][ws] (found in +lots of places). ## Contents @@ -29079,8 +29288,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`combineExtensions(extensions)`](#combineextensionsextensions) - * [`combineHtmlExtensions(htmlExtensions)`](#combinehtmlextensionshtmlextensions) + * [`factoryWhitespace(…)`](#factorywhitespace) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -29089,12 +29297,11 @@ MIT ## What is this? -This package can merge multiple extensions into one. +This package exposes states to parse whitespace. ## When should I use this? -This package might be useful when you are making “presets”, such as -[`micromark-extension-gfm`][micromark-extension-gfm]. +This package is useful when you are making your own micromark extensions. ## Install @@ -29102,67 +29309,77 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-combine-extensions +npm install micromark-factory-whitespace ``` In Deno with [`esm.sh`][esmsh]: ```js -import {combineExtensions} from 'https://esm.sh/micromark-util-combine-extensions@1' +import {factoryWhitespace} from 'https://esm.sh/micromark-factory-whitespace@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal' -import {gfmStrikethrough} from 'micromark-extension-gfm-strikethrough' -import {gfmTable} from 'micromark-extension-gfm-table' -import {gfmTaskListItem} from 'micromark-extension-gfm-task-list-item' -import {combineExtensions} from 'micromark-util-combine-extensions' +import {factoryWhitespace} from 'micromark-factory-whitespace' +import {codes, types} from 'micromark-util-symbol' -const gfm = combineExtensions([gfmAutolinkLiteral, gfmStrikethrough(), gfmTable, gfmTaskListItem]) +// A micromark tokenizer that uses the factory: +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeTitle(effects, ok, nok) { + return start + + /** @type {State} */ + function start(code) { + return markdownLineEndingOrSpace(code) + ? factoryWhitespace(effects, before)(code) + : nok(code) + } + + // … +} ``` ## API -This module exports the identifiers -[`combineExtensions`][api-combine-extensions] and -[`combineHtmlExtensions`][api-combine-html-extensions]. +This module exports the identifier +[`factoryWhitespace`][api-factory-whitespace]. There is no default export. -### `combineExtensions(extensions)` - -Combine multiple syntax extensions into one. - -###### Parameters - -* `extensions` (`Array`) - — list of syntax extensions - -###### Returns +### `factoryWhitespace(…)` -A single combined extension (`Extension`). +Parse spaces and tabs. -### `combineHtmlExtensions(htmlExtensions)` +There is no `nok` parameter: -Combine multiple html extensions into one. +* line endings or spaces in markdown are often optional, in which case this + factory can be used and `ok` will be switched to whether spaces were found + or not +* one line ending or space can be detected with + [`markdownLineEndingOrSpace(code)`][ws] right before using + `factoryWhitespace` ###### Parameters -* `htmlExtensions` (`Array`) - — list of HTML extensions +* `effects` (`Effects`) + — context +* `ok` (`State`) + — state switched to when successful ###### Returns -A single combined HTML extension (`HtmlExtension`). +Start state (`State`). ## Types @@ -29171,12 +29388,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-factory-whitespace@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -29208,13 +29427,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-combine-extensions.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-factory-whitespace.svg -[downloads]: https://www.npmjs.com/package/micromark-util-combine-extensions +[downloads]: https://www.npmjs.com/package/micromark-factory-whitespace -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-combine-extensions +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-factory-whitespace -[bundle-size]: https://bundlejs.com/?q=micromark-util-combine-extensions +[bundle-size]: https://bundlejs.com/?q=micromark-factory-whitespace [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -29246,24 +29465,18 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -[syntax]: https://github.com/micromark/micromark#syntaxextension - -[html]: https://github.com/micromark/micromark#htmlextension +[ws]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownlineendingorspacecode [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[micromark-extension-gfm]: https://github.com/micromark/micromark-extension-gfm - -[api-combine-extensions]: #combineextensionsextensions - -[api-combine-html-extensions]: #combinehtmlextensionshtmlextensions +[api-factory-whitespace]: #factorywhitespace -micromark-util-decode-numeric-character-reference 1.1.0 +micromark-util-character 1.2.0 MIT -# micromark-util-decode-numeric-character-reference +# micromark-util-character [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -29273,7 +29486,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to decode numeric character references. +[micromark][] utility to handle [character codes][code]. ## Contents @@ -29282,7 +29495,18 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`decodeNumericCharacterReference(value, base)`](#decodenumericcharacterreferencevalue-base) + * [`asciiAlpha(code)`](#asciialphacode) + * [`asciiAlphanumeric(code)`](#asciialphanumericcode) + * [`asciiAtext(code)`](#asciiatextcode) + * [`asciiControl(code)`](#asciicontrolcode) + * [`asciiDigit(code)`](#asciidigitcode) + * [`asciiHexDigit(code)`](#asciihexdigitcode) + * [`asciiPunctuation(code)`](#asciipunctuationcode) + * [`markdownLineEnding(code)`](#markdownlineendingcode) + * [`markdownLineEndingOrSpace(code)`](#markdownlineendingorspacecode) + * [`markdownSpace(code)`](#markdownspacecode) + * [`unicodePunctuation(code)`](#unicodepunctuationcode) + * [`unicodeWhitespace(code)`](#unicodewhitespacecode) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -29291,7 +29515,7 @@ MIT ## What is this? -This package exposes an algorithm to decode numeric character references. +This package exposes algorithms to check whether characters match groups. ## When should I use this? @@ -29303,240 +29527,287 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-decode-numeric-character-reference +npm install micromark-util-character ``` In Deno with [`esm.sh`][esmsh]: ```js -import {decodeNumericCharacterReference} from 'https://esm.sh/micromark-util-decode-numeric-character-reference@1' +import * as character from 'https://esm.sh/micromark-util-character@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference' +import {asciiAlpha} from 'micromark-util-character' -decodeNumericCharacterReference('41', 16) // 'A' -decodeNumericCharacterReference('65', 10) // 'A' -decodeNumericCharacterReference('A', 16) // '\n' -decodeNumericCharacterReference('7F', 16) // '�' - Control -decodeNumericCharacterReference('110000', 16) // '�' - Out of range +console.log(asciiAlpha(64)) // false +console.log(asciiAlpha(65)) // true ``` ## API -This module exports the identifier: -[`decodeNumericCharacterReference`][api-decode-numeric-character-reference]. +This module exports the identifiers +[`asciiAlpha`][api-ascii-alpha], +[`asciiAlphanumeric`][api-ascii-alphanumeric], +[`asciiAtext`][api-ascii-atext], +[`asciiControl`][api-ascii-control], +[`asciiDigit`][api-ascii-digit], +[`asciiHexDigit`][api-ascii-hex-digit], +[`asciiPunctuation`][api-ascii-punctuation], +[`markdownLineEnding`][api-markdown-line-ending], +[`markdownLineEndingOrSpace`][api-markdown-line-ending-or-space], +[`markdownSpace`][api-markdown-space], +[`unicodePunctuation`][api-unicode-punctuation], +[`unicodeWhitespace`][api-unicode-whitespace]. There is no default export. -### `decodeNumericCharacterReference(value, base)` +### `asciiAlpha(code)` -Turn the number (in string form as either hexa- or plain decimal) coming from -a numeric character reference into a character. +Check whether the [character code][code] represents an ASCII alpha (`a` through +`z`, case insensitive). -Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes -non-characters and control characters safe. +An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha. + +An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`) +to U+005A (`Z`). + +An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`) +to U+007A (`z`). ###### Parameters -* `value` (`string`) - — value to decode -* `base` (`number`, probably `10` or `16`) - — numeric base +* `code` (`Code`) + — code ###### Returns -Character (`string`). - -## Types +Whether it matches (`boolean`). -This package is fully typed with [TypeScript][]. -It exports no additional types. +### `asciiAlphanumeric(code)` -## Compatibility +Check whether the [character code][code] represents an ASCII alphanumeric (`a` +through `z`, case insensitive, or `0` through `9`). -Projects maintained by the unified collective are compatible with all maintained -versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. +An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha +(see `asciiAlpha`). -This package works with `micromark` version 3+. +###### Parameters -## Security +* `code` (`Code`) + — code -This package is safe. -See [`security.md`][securitymd] in [`micromark/.github`][health] for how to -submit a security report. +###### Returns -## Contribute +Whether it matches (`boolean`). -See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways -to get started. -See [`support.md`][support] for ways to get help. +### `asciiAtext(code)` -This project has a [code of conduct][coc]. -By interacting with this repository, organisation, or community you agree to -abide by its terms. +Check whether the [character code][code] represents an ASCII atext. -## License +atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in +the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`), +U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F +SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E +CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE +(`{`) to U+007E TILDE (`~`) (**\[RFC5322]**). -[MIT][license] © [Titus Wormer][author] +See **\[RFC5322]**:\ +[Internet Message Format](https://tools.ietf.org/html/rfc5322).\ +P. Resnick.\ +IETF. - +###### Parameters -[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg +* `code` (`Code`) + — code -[build]: https://github.com/micromark/micromark/actions +###### Returns -[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +Whether it matches (`boolean`). -[coverage]: https://codecov.io/github/micromark/micromark +### `asciiControl(code)` -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg +Check whether a [character code][code] is an ASCII control character. -[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier +An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL) +to U+001F (US), or U+007F (DEL). -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier +###### Parameters -[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier +* `code` (`Code`) + — code -[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +###### Returns -[backers-badge]: https://opencollective.com/unified/backers/badge.svg +Whether it matches (`boolean`). -[opencollective]: https://opencollective.com/unified +### `asciiDigit(code)` -[npm]: https://docs.npmjs.com/cli/install +Check whether the [character code][code] represents an ASCII digit (`0` through +`9`). -[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c +An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to +U+0039 (`9`). -[esmsh]: https://esm.sh +###### Parameters -[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +* `code` (`Code`) + — code -[chat]: https://github.com/micromark/micromark/discussions +###### Returns -[license]: https://github.com/micromark/micromark/blob/main/license +Whether it matches (`boolean`). -[author]: https://wooorm.com +### `asciiHexDigit(code)` -[health]: https://github.com/micromark/.github +Check whether the [character code][code] represents an ASCII hex digit (`a` +through `f`, case insensitive, or `0` through `9`). -[securitymd]: https://github.com/micromark/.github/blob/main/security.md +An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex +digit, or an ASCII lower hex digit. -[contributing]: https://github.com/micromark/.github/blob/main/contributing.md +An **ASCII upper hex digit** is a character in the inclusive range U+0041 +(`A`) to U+0046 (`F`). -[support]: https://github.com/micromark/.github/blob/main/support.md +An **ASCII lower hex digit** is a character in the inclusive range U+0061 +(`a`) to U+0066 (`f`). -[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md +###### Parameters -[typescript]: https://www.typescriptlang.org +* `code` (`Code`) + — code -[micromark]: https://github.com/micromark/micromark +###### Returns -[api-decode-numeric-character-reference]: #decodenumericcharacterreferencevalue-base +Whether it matches (`boolean`). +### `asciiPunctuation(code)` -micromark-util-decode-string 1.1.0 -MIT -# micromark-util-decode-string +Check whether the [character code][code] represents ASCII punctuation. -[![Build][build-badge]][build] -[![Coverage][coverage-badge]][coverage] -[![Downloads][downloads-badge]][downloads] -[![Size][bundle-size-badge]][bundle-size] -[![Sponsors][sponsors-badge]][opencollective] -[![Backers][backers-badge]][opencollective] -[![Chat][chat-badge]][chat] +An **ASCII punctuation** is a character in the inclusive ranges U+0021 +EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT +SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT +(`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`). -[micromark][] utility to decode markdown strings. +###### Parameters -## Contents +* `code` (`Code`) + — code -* [What is this?](#what-is-this) -* [When should I use this?](#when-should-i-use-this) -* [Install](#install) -* [Use](#use) -* [API](#api) - * [`decodeString(value)`](#decodestringvalue) -* [Types](#types) -* [Compatibility](#compatibility) -* [Security](#security) -* [Contribute](#contribute) -* [License](#license) +###### Returns -## What is this? +Whether it matches (`boolean`). -This package exposes an algorithm to parse character escapes and character -references. +### `markdownLineEnding(code)` -## When should I use this? +Check whether a [character code][code] is a markdown line ending. -This package might be useful when you are making your own micromark extensions. +A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN +LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR). -## Install +In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE +RETURN (CR) are replaced by these virtual characters depending on whether +they occurred together. -This package is [ESM only][esm]. -In Node.js (version 16+), install with [npm][]: +###### Parameters -```sh -npm install micromark-util-decode-string -``` +* `code` (`Code`) + — code -In Deno with [`esm.sh`][esmsh]: +###### Returns -```js -import {decodeString} from 'https://esm.sh/micromark-util-decode-string@1' -``` +Whether it matches (`boolean`). -In browsers with [`esm.sh`][esmsh]: +### `markdownLineEndingOrSpace(code)` -```html - -``` +Check whether a [character code][code] is a markdown line ending (see +`markdownLineEnding`) or markdown space (see `markdownSpace`). -## Use +###### Parameters -```js -import {decodeString} from 'micromark-util-decode-string' +* `code` (`Code`) + — code -decodeString('a ; b') // 'a ; b' -decodeString('a \\; b') // 'a ; b' -decodeString('a ; b') // 'a ; b' -``` +###### Returns -## API +Whether it matches (`boolean`). -This module exports the identifier [`decodeString`][api-decode-string]. -There is no default export. +### `markdownSpace(code)` -### `decodeString(value)` +Check whether a [character code][code] is a markdown space. -Decode markdown strings (which occur in places such as fenced code info strings, -destinations, labels, and titles). +A **markdown space** is the concrete character U+0020 SPACE (SP) and the +virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT). -The “string” content type allows character escapes and -references. -This decodes those. +In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is +replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL +SPACE (VS) characters, depending on the column at which the tab occurred. ###### Parameters -* `value` (`string`) - — value to decode +* `code` (`Code`) + — code ###### Returns -Decoded value (`string`). +Whether it matches (`boolean`). + +### `unicodePunctuation(code)` + +Check whether the [character code][code] represents Unicode punctuation. + +A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation, +Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf` +(Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po` +(Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII +punctuation (see `asciiPunctuation`) (**\[UNICODE]**). + +See **\[UNICODE]**:\ +[The Unicode Standard](https://www.unicode.org/versions/).\ +Unicode Consortium. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `unicodeWhitespace(code)` + +Check whether the [character code][code] represents Unicode whitespace. + +Note that this does handle micromark specific markdown whitespace characters. +See `markdownLineEndingOrSpace` to check that. + +A **Unicode whitespace** is a character in the Unicode `Zs` (Separator, +Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), +U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**). + +See **\[UNICODE]**:\ +[The Unicode Standard](https://www.unicode.org/versions/).\ +Unicode Consortium. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). ## Types @@ -29582,13 +29853,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-character.svg -[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier +[downloads]: https://www.npmjs.com/package/micromark-util-character -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-character -[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier +[bundle-size]: https://bundlejs.com/?q=micromark-util-character [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -29624,12 +29895,36 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-decode-string]: #decodestringvalue +[code]: https://github.com/micromark/micromark#preprocess +[api-ascii-alpha]: #asciialphacode -micromark-util-encode 1.1.0 +[api-ascii-alphanumeric]: #asciialphanumericcode + +[api-ascii-atext]: #asciiatextcode + +[api-ascii-control]: #asciicontrolcode + +[api-ascii-digit]: #asciidigitcode + +[api-ascii-hex-digit]: #asciihexdigitcode + +[api-ascii-punctuation]: #asciipunctuationcode + +[api-markdown-line-ending]: #markdownlineendingcode + +[api-markdown-line-ending-or-space]: #markdownlineendingorspacecode + +[api-markdown-space]: #markdownspacecode + +[api-unicode-punctuation]: #unicodepunctuationcode + +[api-unicode-whitespace]: #unicodewhitespacecode + + +micromark-util-character 2.0.1 MIT -# micromark-util-encode +# micromark-util-character [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -29639,7 +29934,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to encode dangerous html characters. +[micromark][] utility to handle [character codes][code]. ## Contents @@ -29648,7 +29943,18 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`encode(value)`](#encodevalue) + * [`asciiAlpha(code)`](#asciialphacode) + * [`asciiAlphanumeric(code)`](#asciialphanumericcode) + * [`asciiAtext(code)`](#asciiatextcode) + * [`asciiControl(code)`](#asciicontrolcode) + * [`asciiDigit(code)`](#asciidigitcode) + * [`asciiHexDigit(code)`](#asciihexdigitcode) + * [`asciiPunctuation(code)`](#asciipunctuationcode) + * [`markdownLineEnding(code)`](#markdownlineendingcode) + * [`markdownLineEndingOrSpace(code)`](#markdownlineendingorspacecode) + * [`markdownSpace(code)`](#markdownspacecode) + * [`unicodePunctuation(code)`](#unicodepunctuationcode) + * [`unicodeWhitespace(code)`](#unicodewhitespacecode) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -29657,7 +29963,7 @@ MIT ## What is this? -This package exposes an algorithm to make text safe for embedding in HTML. +This package exposes algorithms to check whether characters match groups. ## When should I use this? @@ -29669,52 +29975,287 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-encode +npm install micromark-util-character ``` In Deno with [`esm.sh`][esmsh]: ```js -import {encode} from 'https://esm.sh/micromark-util-encode@1' +import * as character from 'https://esm.sh/micromark-util-character@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {encode} from 'micromark-util-encode' +import {asciiAlpha} from 'micromark-util-character' -encode('<3') // '<3' +console.log(asciiAlpha(64)) // false +console.log(asciiAlpha(65)) // true ``` ## API -This module exports the identifier [`encode`][api-encode]. +This module exports the identifiers +[`asciiAlpha`][api-ascii-alpha], +[`asciiAlphanumeric`][api-ascii-alphanumeric], +[`asciiAtext`][api-ascii-atext], +[`asciiControl`][api-ascii-control], +[`asciiDigit`][api-ascii-digit], +[`asciiHexDigit`][api-ascii-hex-digit], +[`asciiPunctuation`][api-ascii-punctuation], +[`markdownLineEnding`][api-markdown-line-ending], +[`markdownLineEndingOrSpace`][api-markdown-line-ending-or-space], +[`markdownSpace`][api-markdown-space], +[`unicodePunctuation`][api-unicode-punctuation], +[`unicodeWhitespace`][api-unicode-whitespace]. There is no default export. -### `encode(value)` +### `asciiAlpha(code)` -Encode only the dangerous HTML characters. +Check whether the [character code][code] represents an ASCII alpha (`a` through +`z`, case insensitive). -This ensures that certain characters which have special meaning in HTML are -dealt with. -Technically, we can skip `>` and `"` in many cases, but CM includes them. +An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha. + +An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`) +to U+005A (`Z`). + +An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`) +to U+007A (`z`). ###### Parameters -* `value` (`string`) - — value to encode +* `code` (`Code`) + — code ###### Returns -Encoded value (`string`). +Whether it matches (`boolean`). + +### `asciiAlphanumeric(code)` + +Check whether the [character code][code] represents an ASCII alphanumeric (`a` +through `z`, case insensitive, or `0` through `9`). + +An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha +(see `asciiAlpha`). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `asciiAtext(code)` + +Check whether the [character code][code] represents an ASCII atext. + +atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in +the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`), +U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F +SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E +CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE +(`{`) to U+007E TILDE (`~`) (**\[RFC5322]**). + +See **\[RFC5322]**:\ +[Internet Message Format](https://tools.ietf.org/html/rfc5322).\ +P. Resnick.\ +IETF. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `asciiControl(code)` + +Check whether a [character code][code] is an ASCII control character. + +An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL) +to U+001F (US), or U+007F (DEL). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `asciiDigit(code)` + +Check whether the [character code][code] represents an ASCII digit (`0` through +`9`). + +An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to +U+0039 (`9`). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `asciiHexDigit(code)` + +Check whether the [character code][code] represents an ASCII hex digit (`a` +through `f`, case insensitive, or `0` through `9`). + +An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex +digit, or an ASCII lower hex digit. + +An **ASCII upper hex digit** is a character in the inclusive range U+0041 +(`A`) to U+0046 (`F`). + +An **ASCII lower hex digit** is a character in the inclusive range U+0061 +(`a`) to U+0066 (`f`). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `asciiPunctuation(code)` + +Check whether the [character code][code] represents ASCII punctuation. + +An **ASCII punctuation** is a character in the inclusive ranges U+0021 +EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT +SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT +(`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `markdownLineEnding(code)` + +Check whether a [character code][code] is a markdown line ending. + +A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN +LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR). + +In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE +RETURN (CR) are replaced by these virtual characters depending on whether +they occurred together. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `markdownLineEndingOrSpace(code)` + +Check whether a [character code][code] is a markdown line ending (see +`markdownLineEnding`) or markdown space (see `markdownSpace`). + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `markdownSpace(code)` + +Check whether a [character code][code] is a markdown space. + +A **markdown space** is the concrete character U+0020 SPACE (SP) and the +virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT). + +In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is +replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL +SPACE (VS) characters, depending on the column at which the tab occurred. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `unicodePunctuation(code)` + +Check whether the [character code][code] represents Unicode punctuation. + +A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation, +Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf` +(Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po` +(Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII +punctuation (see `asciiPunctuation`) (**\[UNICODE]**). + +See **\[UNICODE]**:\ +[The Unicode Standard](https://www.unicode.org/versions/).\ +Unicode Consortium. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). + +### `unicodeWhitespace(code)` + +Check whether the [character code][code] represents Unicode whitespace. + +Note that this does handle micromark specific markdown whitespace characters. +See `markdownLineEndingOrSpace` to check that. + +A **Unicode whitespace** is a character in the Unicode `Zs` (Separator, +Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), +U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**). + +See **\[UNICODE]**:\ +[The Unicode Standard](https://www.unicode.org/versions/).\ +Unicode Consortium. + +###### Parameters + +* `code` (`Code`) + — code + +###### Returns + +Whether it matches (`boolean`). ## Types @@ -29723,12 +30264,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-character@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -29760,13 +30303,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-character.svg -[downloads]: https://www.npmjs.com/package/micromark-util-encode +[downloads]: https://www.npmjs.com/package/micromark-util-character -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-character -[bundle-size]: https://bundlejs.com/?q=micromark-util-encode +[bundle-size]: https://bundlejs.com/?q=micromark-util-character [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -29802,22 +30345,46 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-encode]: #encodevalue +[code]: https://github.com/micromark/micromark#preprocess +[api-ascii-alpha]: #asciialphacode -micromark-util-html-tag-name 1.2.0 -MIT -# micromark-util-html-tag-name +[api-ascii-alphanumeric]: #asciialphanumericcode -[![Build][build-badge]][build] -[![Coverage][coverage-badge]][coverage] -[![Downloads][downloads-badge]][downloads] -[![Size][bundle-size-badge]][bundle-size] -[![Sponsors][sponsors-badge]][opencollective] -[![Backers][backers-badge]][opencollective] -[![Chat][chat-badge]][chat] +[api-ascii-atext]: #asciiatextcode -[micromark][] utility with list of html tag names. +[api-ascii-control]: #asciicontrolcode + +[api-ascii-digit]: #asciidigitcode + +[api-ascii-hex-digit]: #asciihexdigitcode + +[api-ascii-punctuation]: #asciipunctuationcode + +[api-markdown-line-ending]: #markdownlineendingcode + +[api-markdown-line-ending-or-space]: #markdownlineendingorspacecode + +[api-markdown-space]: #markdownspacecode + +[api-unicode-punctuation]: #unicodepunctuationcode + +[api-unicode-whitespace]: #unicodewhitespacecode + + +micromark-util-chunked 1.1.0 +MIT +# micromark-util-chunked + +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] + +[micromark][] utility to splice and push with giant arrays. ## Contents @@ -29826,8 +30393,8 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`htmlBlockNames`](#htmlblocknames) - * [`htmlRawNames`](#htmlrawnames) + * [`push(list, items)`](#pushlist-items) + * [`splice(list, start, remove, items)`](#splicelist-start-remove-items) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -29836,11 +30403,12 @@ MIT ## What is this? -This package exposes a list of known tag names to markdown. +This package exposes an algorithm to splice for giant arrays, which V8 bugs +out on. ## When should I use this? -This package is only useful if you want to build an alternative to micromark. +This package might be useful when you are making your own micromark extensions. ## Install @@ -29848,66 +30416,91 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-html-tag-name +npm install micromark-util-chunked ``` In Deno with [`esm.sh`][esmsh]: ```js -import {htmlBlockNames, htmlRawNames} from 'https://esm.sh/micromark-util-html-tag-name@1' +import {push, splice} from 'https://esm.sh/micromark-util-chunked@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {htmlBlockNames, htmlRawNames} from 'micromark-util-html-tag-name' +import {push, splice} from 'micromark-util-chunked' -console.log(htmlBlockNames) // ['address', 'article', …] -console.log(htmlRawNames) // ['pre', 'script', …] +// … + +nextEvents = push(nextEvents, [ + ['enter', events[open][1], context], + ['exit', events[open][1], context] +]) + +// … + +splice(events, open - 1, index - open + 3, nextEvents) + +// … ``` ## API -This module exports the identifiers [`htmlBlockNames`][api-html-block-names] -and [`htmlRawNames`][api-html-raw-names]. +This module exports the identifiers [`push`][api-push] +and [`splice`][api-splice]. There is no default export. -### `htmlBlockNames` +### `push(list, items)` -List of lowercase HTML “block” tag names (`Array`). +Append `items` (an array) at the end of `list` (another array). +When `list` was empty, returns `items` instead. -The list, when parsing HTML (flow), results in more relaxed rules (condition -6\). -Because they are known blocks, the HTML-like syntax doesn’t have to be strictly -parsed. -For tag names not in this list, a more strict algorithm (condition 7) is used -to detect whether the HTML-like syntax is seen as HTML (flow) or not. +This prevents a potentially expensive operation when `list` is empty, +and adds items in batches to prevent V8 from hanging. -This is copied from: -. +###### Parameters -> 👉 **Note**: `search` was added in `CommonMark@0.31`. +* `list` (`Array`) + — list to operate on +* `items` (`Array`) + — items to add to `list` -### `htmlRawNames` +###### Returns -List of lowercase HTML “raw” tag names (`Array`). +Either `list` or `items` (`Array`). -The list, when parsing HTML (flow), results in HTML that can include lines -without exiting, until a closing tag also in this list is found (condition -1\). +### `splice(list, start, remove, items)` -This module is copied from: -. +Like `Array#splice`, but smarter for giant arrays. -> 👉 **Note**: `textarea` was added in `CommonMark@0.30`. +`Array#splice` takes all items to be inserted as individual argument which +causes a stack overflow in V8 when trying to insert 100k items for instance. + +Otherwise, this does not return the removed items, and takes `items` as an +array instead of rest parameters. + +###### Parameters + +* `list` (`Array`) + — list to operate on +* `start` (`number`) + — index to remove/insert at (can be negative) +* `remove` (`number`) + — number of items to remove +* `items` (`Array`) + — items to inject into `list` + +###### Returns + +Nothing (`void`). ## Types @@ -29953,13 +30546,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-html-tag-name.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-chunked.svg -[downloads]: https://www.npmjs.com/package/micromark-util-html-tag-name +[downloads]: https://www.npmjs.com/package/micromark-util-chunked -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-html-tag-name +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-chunked -[bundle-size]: https://bundlejs.com/?q=micromark-util-html-tag-name +[bundle-size]: https://bundlejs.com/?q=micromark-util-chunked [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -29995,14 +30588,14 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-html-block-names]: #htmlblocknames +[api-push]: #pushlist-items -[api-html-raw-names]: #htmlrawnames +[api-splice]: #splicelist-start-remove-items -micromark-util-normalize-identifier 1.1.0 +micromark-util-chunked 2.0.0 MIT -# micromark-util-normalize-identifier +# micromark-util-chunked [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -30012,7 +30605,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility normalize identifiers. +[micromark][] utility to splice and push with giant arrays. ## Contents @@ -30021,7 +30614,8 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`normalizeIdentifier(value)`](#normalizeidentifiervalue) + * [`push(list, items)`](#pushlist-items) + * [`splice(list, start, remove, items)`](#splicelist-start-remove-items) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -30030,7 +30624,8 @@ MIT ## What is this? -This package exposes an algorithm to normalize identifiers found in markdown. +This package exposes an algorithm to splice for giant arrays, which V8 bugs +out on. ## When should I use this? @@ -30042,63 +30637,91 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-normalize-identifier +npm install micromark-util-chunked ``` In Deno with [`esm.sh`][esmsh]: ```js -import {normalizeIdentifier} from 'https://esm.sh/micromark-util-normalize-identifier@1' +import {push, splice} from 'https://esm.sh/micromark-util-chunked@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {normalizeIdentifier} from 'micromark-util-normalize-identifier' +import {push, splice} from 'micromark-util-chunked' -normalizeIdentifier(' a ') // 'A' -normalizeIdentifier('a\t\r\nb') // 'A B' -normalizeIdentifier('ТОЛПОЙ') // 'ТОЛПОЙ' -normalizeIdentifier('Толпой') // 'ТОЛПОЙ' +// … + +nextEvents = push(nextEvents, [ + ['enter', events[open][1], context], + ['exit', events[open][1], context] +]) + +// … + +splice(events, open - 1, index - open + 3, nextEvents) + +// … ``` ## API -This module exports the identifier -[`normalizeIdentifier`][api-normalize-identifier]. +This module exports the identifiers [`push`][api-push] +and [`splice`][api-splice]. There is no default export. -### `normalizeIdentifier(value)` +### `push(list, items)` -Normalize an identifier (as found in references, definitions). +Append `items` (an array) at the end of `list` (another array). +When `list` was empty, returns `items` instead. -Collapses markdown whitespace, trim, and then lower- and uppercase. +This prevents a potentially expensive operation when `list` is empty, +and adds items in batches to prevent V8 from hanging. -Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their -lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different -uppercase character (U+0398 (`Θ`)). -So, to get a canonical form, we perform both lower- and uppercase. +###### Parameters -Using uppercase last makes sure keys will never interact with default -prototypal values (such as `constructor`): nothing in the prototype of `Object` -is uppercase. +* `list` (`Array`) + — list to operate on +* `items` (`Array`) + — items to add to `list` + +###### Returns + +Either `list` or `items` (`Array`). + +### `splice(list, start, remove, items)` + +Like `Array#splice`, but smarter for giant arrays. + +`Array#splice` takes all items to be inserted as individual argument which +causes a stack overflow in V8 when trying to insert 100k items for instance. + +Otherwise, this does not return the removed items, and takes `items` as an +array instead of rest parameters. ###### Parameters -* `value` (`string`) - — identifier to normalize +* `list` (`Array`) + — list to operate on +* `start` (`number`) + — index to remove/insert at (can be negative) +* `remove` (`number`) + — number of items to remove +* `items` (`Array`) + — items to inject into `list` ###### Returns -Normalized identifier (`string`). +Nothing (`undefined`). ## Types @@ -30107,12 +30730,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-chunked@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -30144,13 +30769,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-chunked.svg -[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier +[downloads]: https://www.npmjs.com/package/micromark-util-chunked -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-chunked -[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier +[bundle-size]: https://bundlejs.com/?q=micromark-util-chunked [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -30186,12 +30811,14 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[api-normalize-identifier]: #normalizeidentifiervalue +[api-push]: #pushlist-items + +[api-splice]: #splicelist-start-remove-items -micromark-util-resolve-all 1.1.0 +micromark-util-classify-character 1.1.0 MIT -# micromark-util-resolve-all +# micromark-util-classify-character [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -30201,15 +30828,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to resolve subtokens. - -[Resolvers][resolver] are functions that take events and manipulate them. -This is needed for example because media (links, images) and attention (strong, -italic) aren’t parsed left-to-right. -Instead, their openings and closings are parsed, and when done, their openings -and closings are matched, and left overs are turned into plain text. -Because media and attention can’t overlap, we need to perform that operation -when one closing matches an opening, too. +[micromark][] utility to classify whether a character is whitespace or +punctuation. ## Contents @@ -30218,7 +30838,7 @@ when one closing matches an opening, too. * [Install](#install) * [Use](#use) * [API](#api) - * [`resolveAll(constructs, events, context)`](#resolveallconstructs-events-context) + * [`classifyCharacter(code)`](#classifycharactercode) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -30227,7 +30847,7 @@ when one closing matches an opening, too. ## What is this? -This package exposes a micromark internal that you probably don’t need. +This package exposes an algorithm to classify characters into 3 categories. ## When should I use this? @@ -30239,77 +30859,48 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-resolve-all +npm install micromark-util-classify-character ``` In Deno with [`esm.sh`][esmsh]: ```js -import {resolveAll} from 'https://esm.sh/micromark-util-resolve-all@1' +import {classifyCharacter} from 'https://esm.sh/micromark-util-classify-character@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {push} from 'micromark-util-chunked' -import {resolveAll} from 'micromark-util-resolve-all' - /** - * @type {Resolver} + * @this {TokenizeContext} + * @type {Tokenizer} */ -function resolveAllAttention(events, context) { - // … - - // Walk through all events. - while (++index < events.length) { - // Find a token that can close. - if ( - events[index][0] === 'enter' && - events[index][1].type === 'attentionSequence' && - events[index][1]._close - ) { - open = index - - // Now walk back to find an opener. - while (open--) { - // Find a token that can open the closer. - if ( - // … - ) { - // … - - // Opening. - nextEvents = push(nextEvents, [ - // … - ]) - - // Between. - nextEvents = push( - nextEvents, - resolveAll( - context.parser.constructs.insideSpan.null, - events.slice(open + 1, index), - context - ) - ) +function tokenizeAttention(effects, ok) { + return start - // Closing. - nextEvents = push(nextEvents, [ - // … - ]) + // … - // … - } - } + /** @type {State} */ + function sequence(code) { + if (code === marker) { + // … } + + const token = effects.exit('attentionSequence') + const after = classifyCharacter(code) + const open = + !after || (after === constants.characterGroupPunctuation && before) + const close = + !before || (before === constants.characterGroupPunctuation && after) + // … } // … @@ -30318,25 +30909,29 @@ function resolveAllAttention(events, context) { ## API -This module exports the identifier [`resolveAll`][api-resolve-all]. +This module exports the identifier +[`classifyCharacter`][api-classify-character]. There is no default export. -### `resolveAll(constructs, events, context)` +### `classifyCharacter(code)` -Call all `resolveAll`s in `constructs`. +Classify whether a code represents whitespace, punctuation, or something +else. + +Used for attention (emphasis, strong), whose sequences can open or close +based on the class of surrounding characters. + +> 👉 **Note**: eof (`null`) is seen as whitespace. ###### Parameters -* `constructs` (`Array`) - — list of constructs, optionally with `resolveAll`s -* `events` (`Array`) - — list of events -* `context` (`TokenizeContext`) - — context used by `tokenize` +* `code` (`Code`) + — code ###### Returns -Changed events (`Array`). +Group (`constants.characterGroupWhitespace`, +`constants.characterGroupPunctuation`, or `undefined`). ## Types @@ -30382,13 +30977,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-resolve-all.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-classify-character.svg -[downloads]: https://www.npmjs.com/package/micromark-util-resolve-all +[downloads]: https://www.npmjs.com/package/micromark-util-classify-character -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-resolve-all +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-classify-character -[bundle-size]: https://bundlejs.com/?q=micromark-util-resolve-all +[bundle-size]: https://bundlejs.com/?q=micromark-util-classify-character [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -30420,18 +31015,16 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -[resolver]: https://github.com/micromark/micromark/blob/a571c09/packages/micromark-util-types/index.js#L219 - [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[api-resolve-all]: #resolveallconstructs-events-context +[api-classify-character]: #classifycharactercode -micromark-util-sanitize-uri 1.2.0 +micromark-util-classify-character 2.0.0 MIT -# micromark-util-sanitize-uri +# micromark-util-classify-character [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -30441,7 +31034,8 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to sanitize urls. +[micromark][] utility to classify whether a character is whitespace or +punctuation. ## Contents @@ -30450,8 +31044,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`normalizeUri(value)`](#normalizeurivalue) - * [`sanitizeUri(url[, pattern])`](#sanitizeuriurl-pattern) + * [`classifyCharacter(code)`](#classifycharactercode) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -30460,7 +31053,7 @@ MIT ## What is this? -This package exposes an algorithm to make URLs safe. +This package exposes an algorithm to classify characters into 3 categories. ## When should I use this? @@ -30472,85 +31065,79 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-sanitize-uri +npm install micromark-util-classify-character ``` In Deno with [`esm.sh`][esmsh]: ```js -import {sanitizeUri} from 'https://esm.sh/micromark-util-sanitize-uri@1' +import {classifyCharacter} from 'https://esm.sh/micromark-util-classify-character@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {sanitizeUri} from 'micromark-util-sanitize-uri' - -sanitizeUri('https://example.com/a&b') // 'https://example.com/a&amp;b' -sanitizeUri('https://example.com/a%b') // 'https://example.com/a%25b' -sanitizeUri('https://example.com/a%20b') // 'https://example.com/a%20b' -sanitizeUri('https://example.com/👍') // 'https://example.com/%F0%9F%91%8D' -sanitizeUri('https://example.com/', /^https?$/i) // 'https://example.com/' -sanitizeUri('javascript:alert(1)', /^https?$/i) // '' -sanitizeUri('./example.jpg', /^https?$/i) // './example.jpg' -sanitizeUri('#a', /^https?$/i) // '#a' -``` - -## API - -This module exports the identifiers [`normalizeUri`][api-normalize-uri] and -[`sanitizeUri`][api-sanitize-uri]. -There is no default export. - -### `normalizeUri(value)` +/** + * @this {TokenizeContext} + * @type {Tokenizer} + */ +function tokenizeAttention(effects, ok) { + return start -Normalize a URL. + // … -Encode unsafe characters with percent-encoding, skipping already encoded -sequences. + /** @type {State} */ + function sequence(code) { + if (code === marker) { + // … + } -###### Parameters + const token = effects.exit('attentionSequence') + const after = classifyCharacter(code) + const open = + !after || (after === constants.characterGroupPunctuation && before) + const close = + !before || (before === constants.characterGroupPunctuation && after) + // … + } -* `value` (`string`) - — URI to normalize + // … +} +``` -###### Returns +## API -Normalized URI (`string`). +This module exports the identifier +[`classifyCharacter`][api-classify-character]. +There is no default export. -### `sanitizeUri(url[, pattern])` +### `classifyCharacter(code)` -Make a value safe for injection as a URL. +Classify whether a code represents whitespace, punctuation, or something +else. -This encodes unsafe characters with percent-encoding and skips already -encoded sequences (see [`normalizeUri`][api-normalize-uri]). -Further unsafe characters are encoded as character references (see -[`micromark-util-encode`][micromark-util-encode]). +Used for attention (emphasis, strong), whose sequences can open or close +based on the class of surrounding characters. -A regex of allowed protocols can be given, in which case the URL is sanitized. -For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or -`/^https?$/i` for `img[src]` (this is what `github.com` allows). -If the URL includes an unknown protocol (one not matched by `protocol`, such -as a dangerous example, `javascript:`), the value is ignored. +> 👉 **Note**: eof (`null`) is seen as whitespace. ###### Parameters -* `url` (`string`) - — URI to sanitize -* `pattern` (`RegExp`, optional) - — allowed protocols +* `code` (`Code`) + — code ###### Returns -Sanitized URI (`string`). +Group (`constants.characterGroupWhitespace`, +`constants.characterGroupPunctuation`, or `undefined`). ## Types @@ -30559,12 +31146,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-classify-character@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -30596,13 +31185,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-sanitize-uri.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-classify-character.svg -[downloads]: https://www.npmjs.com/package/micromark-util-sanitize-uri +[downloads]: https://www.npmjs.com/package/micromark-util-classify-character -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-sanitize-uri +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-classify-character -[bundle-size]: https://bundlejs.com/?q=micromark-util-sanitize-uri +[bundle-size]: https://bundlejs.com/?q=micromark-util-classify-character [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -30638,16 +31227,12 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[micromark-util-encode]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode - -[api-normalize-uri]: #normalizeurivalue - -[api-sanitize-uri]: #sanitizeuriurl-pattern +[api-classify-character]: #classifycharactercode -micromark-util-subtokenize 1.1.0 +micromark-util-combine-extensions 1.1.0 MIT -# micromark-util-subtokenize +# micromark-util-combine-extensions [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -30657,7 +31242,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility to tokenize subtokens. +[micromark][] utility to combine [syntax][] or [html][] extensions. ## Contents @@ -30666,7 +31251,8 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) - * [`subtokenize(events)`](#subtokenizeevents) + * [`combineExtensions(extensions)`](#combineextensionsextensions) + * [`combineHtmlExtensions(htmlExtensions)`](#combinehtmlextensionshtmlextensions) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -30675,11 +31261,12 @@ MIT ## What is this? -This package exposes a micromark internal that you probably don’t need. +This package can merge multiple extensions into one. ## When should I use this? -This package might be useful when you are making your own micromark extensions. +This package might be useful when you are making “presets”, such as +[`micromark-extension-gfm`][micromark-extension-gfm]. ## Install @@ -30687,57 +31274,67 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-subtokenize +npm install micromark-util-combine-extensions ``` In Deno with [`esm.sh`][esmsh]: ```js -import {subtokenize} from 'https://esm.sh/micromark-util-subtokenize@1' +import {combineExtensions} from 'https://esm.sh/micromark-util-combine-extensions@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {subtokenize} from 'micromark-util-subtokenize' +import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal' +import {gfmStrikethrough} from 'micromark-extension-gfm-strikethrough' +import {gfmTable} from 'micromark-extension-gfm-table' +import {gfmTaskListItem} from 'micromark-extension-gfm-task-list-item' +import {combineExtensions} from 'micromark-util-combine-extensions' -/** - * Content is transparent: it’s parsed right now. That way, definitions are also - * parsed right now: before text in paragraphs (specifically, media) are parsed. - * - * @type {Resolver} - */ -function resolveContent(events) { - subtokenize(events) - return events -} +const gfm = combineExtensions([gfmAutolinkLiteral, gfmStrikethrough(), gfmTable, gfmTaskListItem]) ``` ## API -This module exports the identifiers [`subtokenize`][api-subtokenize]. -There is no default export. - -### `subtokenize(events)` +This module exports the identifiers +[`combineExtensions`][api-combine-extensions] and +[`combineHtmlExtensions`][api-combine-html-extensions]. +There is no default export. -Tokenize subcontent. +### `combineExtensions(extensions)` + +Combine multiple syntax extensions into one. ###### Parameters -* `events` (`Array`) - — list of events +* `extensions` (`Array`) + — list of syntax extensions ###### Returns -Whether subtokens were found (`boolean`). +A single combined extension (`Extension`). + +### `combineHtmlExtensions(htmlExtensions)` + +Combine multiple html extensions into one. + +###### Parameters + +* `htmlExtensions` (`Array`) + — list of HTML extensions + +###### Returns + +A single combined HTML extension (`HtmlExtension`). ## Types @@ -30783,13 +31380,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-subtokenize.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-combine-extensions.svg -[downloads]: https://www.npmjs.com/package/micromark-util-subtokenize +[downloads]: https://www.npmjs.com/package/micromark-util-combine-extensions -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-subtokenize +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-combine-extensions -[bundle-size]: https://bundlejs.com/?q=micromark-util-subtokenize +[bundle-size]: https://bundlejs.com/?q=micromark-util-combine-extensions [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -30821,16 +31418,24 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md +[syntax]: https://github.com/micromark/micromark#syntaxextension + +[html]: https://github.com/micromark/micromark#htmlextension + [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[api-subtokenize]: #subtokenizeevents +[micromark-extension-gfm]: https://github.com/micromark/micromark-extension-gfm +[api-combine-extensions]: #combineextensionsextensions -micromark-util-symbol 1.1.0 +[api-combine-html-extensions]: #combinehtmlextensionshtmlextensions + + +micromark-util-combine-extensions 2.0.0 MIT -# micromark-util-symbol +# micromark-util-combine-extensions [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -30840,7 +31445,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility with symbols. +[micromark][] utility to combine [syntax][] or [html][] extensions. ## Contents @@ -30849,6 +31454,8 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) + * [`combineExtensions(extensions)`](#combineextensionsextensions) + * [`combineHtmlExtensions(htmlExtensions)`](#combinehtmlextensionshtmlextensions) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -30857,14 +31464,12 @@ MIT ## What is this? -This package exposes constants used throughout the micromark ecosystem. +This package can merge multiple extensions into one. ## When should I use this? -This package is useful when you are making your own micromark extensions. -It’s useful to reference these constants by name instead of value while -developing. -[`micromark-build`][micromark-build] compiles them away for production code. +This package might be useful when you are making “presets”, such as +[`micromark-extension-gfm`][micromark-extension-gfm]. ## Install @@ -30872,48 +31477,67 @@ This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-symbol +npm install micromark-util-combine-extensions ``` In Deno with [`esm.sh`][esmsh]: ```js -import {codes} from 'https://esm.sh/micromark-util-symbol/codes@1' +import {combineExtensions} from 'https://esm.sh/micromark-util-combine-extensions@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use ```js -import {codes} from 'micromark-util-symbol/codes' -import {constants} from 'micromark-util-symbol/constants' -import {types} from 'micromark-util-symbol/types' -import {values} from 'micromark-util-symbol/values' +import {gfmAutolinkLiteral} from 'micromark-extension-gfm-autolink-literal' +import {gfmStrikethrough} from 'micromark-extension-gfm-strikethrough' +import {gfmTable} from 'micromark-extension-gfm-table' +import {gfmTaskListItem} from 'micromark-extension-gfm-task-list-item' +import {combineExtensions} from 'micromark-util-combine-extensions' -console.log(codes.atSign) // 64 -console.log(constants.characterReferenceNamedSizeMax) // 31 -console.log(types.definitionDestinationRaw) // 'definitionDestinationRaw' -console.log(values.atSign) // '@' +const gfm = combineExtensions([gfmAutolinkLiteral, gfmStrikethrough(), gfmTable, gfmTaskListItem]) ``` ## API -This package has four entries in its export map: `micromark-util-symbol/codes`, -`micromark-util-symbol/constants`, `micromark-util-symbol/types`, -`micromark-util-symbol/values`. +This module exports the identifiers +[`combineExtensions`][api-combine-extensions] and +[`combineHtmlExtensions`][api-combine-html-extensions]. +There is no default export. -Each module exports an identifier with the same name (for example, -`micromark-util-symbol/codes` has `codes`), which is an object mapping strings -to other values. +### `combineExtensions(extensions)` -See the code for the exposed data. +Combine multiple syntax extensions into one. + +###### Parameters + +* `extensions` (`Array`) + — list of syntax extensions + +###### Returns + +A single combined extension (`Extension`). + +### `combineHtmlExtensions(htmlExtensions)` + +Combine multiple html extensions into one. + +###### Parameters + +* `htmlExtensions` (`Array`) + — list of HTML extensions + +###### Returns + +A single combined HTML extension (`HtmlExtension`). ## Types @@ -30922,12 +31546,14 @@ It exports no additional types. ## Compatibility -Projects maintained by the unified collective are compatible with all maintained +Projects maintained by the unified collective are compatible with maintained versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. -This package works with `micromark` version 3+. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-combine-extensions@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. ## Security @@ -30959,13 +31585,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-symbol.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-combine-extensions.svg -[downloads]: https://www.npmjs.com/package/micromark-util-symbol +[downloads]: https://www.npmjs.com/package/micromark-util-combine-extensions -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-symbol +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-combine-extensions -[bundle-size]: https://bundlejs.com/?q=micromark-util-symbol +[bundle-size]: https://bundlejs.com/?q=micromark-util-combine-extensions [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -30997,16 +31623,24 @@ abide by its terms. [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md +[syntax]: https://github.com/micromark/micromark#syntaxextension + +[html]: https://github.com/micromark/micromark#htmlextension + [typescript]: https://www.typescriptlang.org [micromark]: https://github.com/micromark/micromark -[micromark-build]: https://github.com/micromark/micromark/tree/main/packages/micromark-build +[micromark-extension-gfm]: https://github.com/micromark/micromark-extension-gfm +[api-combine-extensions]: #combineextensionsextensions -micromark-util-types 1.1.0 +[api-combine-html-extensions]: #combinehtmlextensionshtmlextensions + + +micromark-util-decode-numeric-character-reference 1.1.0 MIT -# micromark-util-types +# micromark-util-decode-numeric-character-reference [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -31016,7 +31650,7 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -[micromark][] utility package with TypeScript types. +[micromark][] utility to decode numeric character references. ## Contents @@ -31025,6 +31659,7 @@ MIT * [Install](#install) * [Use](#use) * [API](#api) + * [`decodeNumericCharacterReference(value, base)`](#decodenumericcharacterreferencevalue-base) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) @@ -31033,47 +31668,76 @@ MIT ## What is this? -This package exposes TypeScript types shared throughout the micromark -ecosystem. +This package exposes an algorithm to decode numeric character references. ## When should I use this? -This package is useful when you are making your own, typed, micromark -extensions. +This package might be useful when you are making your own micromark extensions. ## Install +This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark-util-types +npm install micromark-util-decode-numeric-character-reference ``` In Deno with [`esm.sh`][esmsh]: ```js -import type {Point, /* … */} from 'https://esm.sh/micromark-util-types@1' +import {decodeNumericCharacterReference} from 'https://esm.sh/micromark-util-decode-numeric-character-reference@1' +``` + +In browsers with [`esm.sh`][esmsh]: + +```html + ``` ## Use ```js -/** - * @typedef {import('micromark-util-types').Point} Point - */ +import {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference' + +decodeNumericCharacterReference('41', 16) // 'A' +decodeNumericCharacterReference('65', 10) // 'A' +decodeNumericCharacterReference('A', 16) // '\n' +decodeNumericCharacterReference('7F', 16) // '�' - Control +decodeNumericCharacterReference('110000', 16) // '�' - Out of range ``` ## API -This module exports no identifiers. +This module exports the identifier: +[`decodeNumericCharacterReference`][api-decode-numeric-character-reference]. There is no default export. -See [the code][code] for all about the exposed types. +### `decodeNumericCharacterReference(value, base)` + +Turn the number (in string form as either hexa- or plain decimal) coming from +a numeric character reference into a character. + +Sort of like `String.fromCharCode(Number.parseInt(value, base))`, but makes +non-characters and control characters safe. + +###### Parameters + +* `value` (`string`) + — value to decode +* `base` (`number`, probably `10` or `16`) + — numeric base + +###### Returns + +Character (`string`). ## Types -This package is just [TypeScript][] types. -It exports lots of different types. +This package is fully typed with [TypeScript][]. +It exports no additional types. ## Compatibility @@ -31082,7 +31746,7 @@ versions of Node.js. As of now, that is Node.js 16+. Our projects sometimes work with older versions, but this is not guaranteed. -This package work with `micromark` version 3+. +This package works with `micromark` version 3+. ## Security @@ -31114,13 +31778,13 @@ abide by its terms. [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg -[downloads]: https://www.npmjs.com/package/micromark-util-encode +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier -[bundle-size]: https://bundlejs.com/?q=micromark-util-encode +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -31130,6 +31794,8 @@ abide by its terms. [npm]: https://docs.npmjs.com/cli/install +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c + [esmsh]: https://esm.sh [chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg @@ -31154,12 +31820,12 @@ abide by its terms. [micromark]: https://github.com/micromark/micromark -[code]: https://github.com/micromark/micromark/blob/main/packages/micromark-util-types/index.d.ts +[api-decode-numeric-character-reference]: #decodenumericcharacterreferencevalue-base -micromark 3.2.0 +micromark-util-decode-numeric-character-reference 2.0.1 MIT -# micromark +# micromark-util-decode-numeric-character-reference [![Build][build-badge]][build] [![Coverage][coverage-badge]][coverage] @@ -31169,377 +31835,303 @@ MIT [![Backers][backers-badge]][opencollective] [![Chat][chat-badge]][chat] -Markdown parser. - -> **Note**: this is the `micromark` package from the micromark monorepo. -> See the [monorepo readme][micromark] for more on the project. -> See this readme for how to use it. - -## Feature highlights - - - -* [x] **[compliant][commonmark]** (100% to CommonMark) -* [x] **[extensions][]** (100% [GFM][], 100% [MDX.js][mdxjs], [directives][], - [frontmatter][], [math][]) -* [x] **[safe][security]** (by default) -* [x] **[robust][test]** (±2k tests, 100% coverage, fuzz testing) -* [x] **[small][size-debug]** (smallest CM parser at ±15kb) +[micromark][] utility to decode numeric character references. ## Contents -* [When should I use this?](#when-should-i-use-this) * [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) * [Install](#install) * [Use](#use) * [API](#api) - * [`micromark(value[, encoding][, options])`](#micromarkvalue-encoding-options) - * [`stream(options?)`](#streamoptions) - * [`Options`](#options) + * [`decodeNumericCharacterReference(value, base)`](#decodenumericcharacterreferencevalue-base) * [Types](#types) * [Compatibility](#compatibility) * [Security](#security) * [Contribute](#contribute) -* [Sponsor](#sponsor) * [License](#license) -## When should I use this? - - - -* If you *just* want to turn markdown into HTML (with maybe a few extensions) -* If you want to do *really complex things* with markdown - -See [§ Comparison][comparison] for more info - ## What is this? - - -`micromark` is an open source markdown parser written in JavaScript. -It’s implemented as a state machine that emits concrete tokens, so that every -byte is accounted for, with positional info. -It then compiles those tokens directly to HTML, but other tools can take the -data and for example build an AST which is easier to work with -([`mdast-util-to-markdown`][mdast-util-to-markdown]). - -While most markdown parsers work towards compliancy with CommonMark (or GFM), -this project goes further by following how the reference parsers (`cmark`, -`cmark-gfm`) work, which is confirmed with thousands of extra tests. - -Other than CommonMark and GFM, micromark also supports common extensions to -markdown such as MDX, math, and frontmatter. +This package exposes an algorithm to decode numeric character references. -These npm packages have a sibling project in Rust: -[`markdown-rs`][markdown-rs]. +## When should I use this? -* to learn markdown, see this [cheatsheet and tutorial][cheat] -* for more about us, see [`unifiedjs.com`][site] -* for updates, see [Twitter][] -* for questions, see [Discussions][chat] -* to help, see [contribute][] and [sponsor][] below +This package might be useful when you are making your own micromark extensions. ## Install - - This package is [ESM only][esm]. In Node.js (version 16+), install with [npm][]: ```sh -npm install micromark +npm install micromark-util-decode-numeric-character-reference ``` In Deno with [`esm.sh`][esmsh]: ```js -import {micromark} from 'https://esm.sh/micromark@3' +import {decodeNumericCharacterReference} from 'https://esm.sh/micromark-util-decode-numeric-character-reference@1' ``` In browsers with [`esm.sh`][esmsh]: ```html ``` ## Use - - -Typical use (buffering): - ```js -import {micromark} from 'micromark' +import {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference' -console.log(micromark('## Hello, *world*!')) +decodeNumericCharacterReference('41', 16) // 'A' +decodeNumericCharacterReference('65', 10) // 'A' +decodeNumericCharacterReference('A', 16) // '\n' +decodeNumericCharacterReference('7F', 16) // '�' - Control +decodeNumericCharacterReference('110000', 16) // '�' - Out of range ``` -Yields: +## API -```html -

Hello, world!

-``` +This module exports the identifier: +[`decodeNumericCharacterReference`][api-decode-numeric-character-reference]. +There is no default export. -You can pass extensions (in this case [`micromark-extension-gfm`][gfm]): +### `decodeNumericCharacterReference(value, base)` -```js -import {micromark} from 'micromark' -import {gfm, gfmHtml} from 'micromark-extension-gfm' +Turn the number (in string form as either hexa- or plain decimal) coming from +a numeric character reference into a character. -const value = '* [x] contact@example.com ~~strikethrough~~' +Sort of like `String.fromCodePoint(Number.parseInt(value, base))`, but makes +non-characters and control characters safe. -const result = micromark(value, { - extensions: [gfm()], - htmlExtensions: [gfmHtml()] -}) +###### Parameters -console.log(result) -``` +* `value` (`string`) + — value to decode +* `base` (`number`, probably `10` or `16`) + — numeric base -Yields: +###### Returns -```html -
-``` +Character (`string`). -Streaming interface: +## Types -```js -import {createReadStream} from 'node:fs' -import {stream} from 'micromark/stream' +This package is fully typed with [TypeScript][]. +It exports no additional types. -createReadStream('example.md') - .on('error', handleError) - .pipe(stream()) - .pipe(process.stdout) +## Compatibility -function handleError(error) { - // Handle your error here! - throw error -} -``` +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -## API +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-decode-numeric-character-reference@^2`, compatible with +Node.js 16. +This package works with `micromark@^3`. -`micromark` core has two entries in its export map: `micromark` and -`micromark/stream`. +## Security -`micromark` exports the identifier [`micromark`][api-micromark]. -`micromark/stream` exports the identifier [`stream`][api-stream]. -There are no default exports. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -The export map supports the [`development` condition][development]. -Run `node --conditions development module.js` to get instrumented dev code. -Without this condition, production code is loaded. -See [§ Size & debug][size-debug] for more info. +## Contribute -### `micromark(value[, encoding][, options])` +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -Compile markdown to HTML. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -###### Parameters +## License -* `value` (`string` or [`Buffer`][buffer]) - — markdown to parse -* `encoding` (`string`, default: `'utf8'`) - — [character encoding][encoding] to understand `value` as when it’s a - `Buffer` -* `options` ([`Options`][api-options], optional) - — configuration +[MIT][license] © [Titus Wormer][author] -###### Returns + -Compiled HTML (`string`). +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -### `stream(options?)` +[build]: https://github.com/micromark/micromark/actions -Create a duplex (readable and writable) stream. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -Some of the work to parse markdown can be done streaming, but in the -end buffering is required. +[coverage]: https://codecov.io/github/micromark/micromark -micromark does not handle errors for you, so you must handle errors on whatever -streams you pipe into it. -As markdown does not know errors, `micromark` itself does not emit errors. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg -###### Parameters +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -* `options` ([`Options`][api-options], optional) - — configuration +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier -###### Returns +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier -Duplex stream. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -### `Options` +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Configuration (TypeScript type). +[opencollective]: https://opencollective.com/unified -##### Fields +[npm]: https://docs.npmjs.com/cli/install -###### `allowDangerousHtml` +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -Whether to allow (dangerous) HTML (`boolean`, default: `false`). +[esmsh]: https://esm.sh -The default is `false`, which still parses the HTML according to `CommonMark` -but shows the HTML as text instead of as elements. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -Pass `true` for trusted content to get actual HTML elements. -See [§ Security][security]. +[chat]: https://github.com/micromark/micromark/discussions -###### `allowDangerousProtocol` +[license]: https://github.com/micromark/micromark/blob/main/license -Whether to allow dangerous protocols in links and images (`boolean`, default: -`false`). +[author]: https://wooorm.com -The default is `false`, which drops URLs in links and images that use dangerous -protocols. +[health]: https://github.com/micromark/.github -Pass `true` for trusted content to support all protocols. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -URLs that have no protocol (which means it’s relative to the current page, such -as `./some/page.html`) and URLs that have a safe protocol (for images: `http`, -`https`; for links: `http`, `https`, `irc`, `ircs`, `mailto`, `xmpp`), are -safe. -All other URLs are dangerous and dropped. -See [§ Security][security]. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -###### `defaultLineEnding` +[support]: https://github.com/micromark/.github/blob/main/support.md -Default line ending to use when compiling to HTML, for line endings not in -`value` (`'\r'`, `'\n'`, or `'\r\n'`; default: first line ending or `'\n'`). +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Generally, `micromark` copies line endings (`\r`, `\n`, `\r\n`) in the markdown -document over to the compiled HTML. -In some cases, such as `> a`, CommonMark requires that extra line endings are -added: `
\n

a

\n
`. +[typescript]: https://www.typescriptlang.org -To create that line ending, the document is checked for the first line ending -that is used. -If there is no line ending, `defaultLineEnding` is used. -If that isn’t configured, `\n` is used. +[micromark]: https://github.com/micromark/micromark -###### `extensions` +[api-decode-numeric-character-reference]: #decodenumericcharacterreferencevalue-base -Array of syntax extensions (`Array`, default: `[]`). -See [§ Extensions][extensions]. -###### `htmlExtensions` +micromark-util-decode-string 1.1.0 +MIT +# micromark-util-decode-string -Array of syntax extensions (`Array`, default: `[]`). -See [§ Extensions][extensions]. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -## Types +[micromark][] utility to decode markdown strings. -This package is fully typed with [TypeScript][]. -It exports the additional type [`Options`][api-options]. +## Contents -## Compatibility +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`decodeString(value)`](#decodestringvalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Projects maintained by the unified collective are compatible with all maintained -versions of Node.js. -As of now, that is Node.js 16+. -Our projects sometimes work with older versions, but this is not guaranteed. +## What is this? -## Security +This package exposes an algorithm to parse character escapes and character +references. -This package is safe. -See [`security.md`][securitymd] in [`micromark/.github`][health] for how to -submit a security report. +## When should I use this? -## Contribute +This package might be useful when you are making your own micromark extensions. -See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways -to get started. -See [`support.md`][support] for ways to get help. +## Install -This project has a [code of conduct][coc]. -By interacting with this repository, organisation, or community you agree to -abide by its terms. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -## Sponsor +```sh +npm install micromark-util-decode-string +``` - +In Deno with [`esm.sh`][esmsh]: -Support this effort and give back by sponsoring on [OpenCollective][]! +```js +import {decodeString} from 'https://esm.sh/micromark-util-decode-string@1' +``` - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- Salesforce 🏅

- -
- Vercel

- -
- Motif

- -
- HashiCorp

- -
- GitBook

- -
- Gatsby

- -
- Netlify

- - -
- Coinbase

- -
- ThemeIsle

- -
- Expo

- -
- Boost Note

- -
- Markdown Space

- -
- Holloway

- -
-
- You? -

-
+In browsers with [`esm.sh`][esmsh]: + +```html + +``` + +## Use + +```js +import {decodeString} from 'micromark-util-decode-string' + +decodeString('a ; b') // 'a ; b' +decodeString('a \\; b') // 'a ; b' +decodeString('a ; b') // 'a ; b' +``` + +## API + +This module exports the identifier [`decodeString`][api-decode-string]. +There is no default export. + +### `decodeString(value)` + +Decode markdown strings (which occur in places such as fenced code info strings, +destinations, labels, and titles). + +The “string” content type allows character escapes and -references. +This decodes those. + +###### Parameters + +* `value` (`string`) + — value to decode + +###### Returns + +Decoded value (`string`). + +## Types + +This package is fully typed with [TypeScript][]. +It exports no additional types. + +## Compatibility + +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. + +This package works with `micromark` version 3+. + +## Security + +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. + +## Contribute + +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. + +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. ## License @@ -31555,13 +32147,13 @@ Support this effort and give back by sponsoring on [OpenCollective][]! [coverage]: https://codecov.io/github/micromark/micromark -[downloads-badge]: https://img.shields.io/npm/dm/micromark.svg +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg -[downloads]: https://www.npmjs.com/package/micromark +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier -[bundle-size]: https://bundlejs.com/?q=micromark +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg @@ -31569,19 +32161,15 @@ Support this effort and give back by sponsoring on [OpenCollective][]! [opencollective]: https://opencollective.com/unified -[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg - -[chat]: https://github.com/micromark/micromark/discussions - [npm]: https://docs.npmjs.com/cli/install [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c [esmsh]: https://esm.sh -[typescript]: https://www.typescriptlang.org +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -[development]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions +[chat]: https://github.com/micromark/micromark/discussions [license]: https://github.com/micromark/micromark/blob/main/license @@ -31597,5730 +32185,3585 @@ Support this effort and give back by sponsoring on [OpenCollective][]! [coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -[cheat]: https://commonmark.org/help/ +[typescript]: https://www.typescriptlang.org -[twitter]: https://twitter.com/unifiedjs +[micromark]: https://github.com/micromark/micromark -[site]: https://unifiedjs.com +[api-decode-string]: #decodestringvalue -[contribute]: #contribute -[encoding]: https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings +micromark-util-decode-string 2.0.0 +MIT +# micromark-util-decode-string -[buffer]: https://nodejs.org/api/buffer.html +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -[commonmark]: https://commonmark.org +[micromark][] utility to decode markdown strings. -[directives]: https://github.com/micromark/micromark-extension-directive +## Contents -[frontmatter]: https://github.com/micromark/micromark-extension-frontmatter +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`decodeString(value)`](#decodestringvalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -[gfm]: https://github.com/micromark/micromark-extension-gfm +## What is this? -[math]: https://github.com/micromark/micromark-extension-math +This package exposes an algorithm to parse character escapes and character +references. -[mdxjs]: https://github.com/micromark/micromark-extension-mdxjs +## When should I use this? -[security]: #security +This package might be useful when you are making your own micromark extensions. -[sponsor]: #sponsor +## Install -[micromark]: https://github.com/micromark/micromark +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -[extensions]: https://github.com/micromark/micromark#extensions +```sh +npm install micromark-util-decode-string +``` -[test]: https://github.com/micromark/micromark#test +In Deno with [`esm.sh`][esmsh]: -[size-debug]: https://github.com/micromark/micromark#size--debug +```js +import {decodeString} from 'https://esm.sh/micromark-util-decode-string@1' +``` -[comparison]: https://github.com/micromark/micromark#comparison +In browsers with [`esm.sh`][esmsh]: -[markdown-rs]: https://github.com/wooorm/markdown-rs +```html + +``` -[mdast-util-to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown +## Use -[api-micromark]: #micromarkvalue-encoding-options +```js +import {decodeString} from 'micromark-util-decode-string' -[api-stream]: #streamoptions +decodeString('a ; b') // 'a ; b' +decodeString('a \\; b') // 'a ; b' +decodeString('a ; b') // 'a ; b' +``` -[api-options]: #options +## API +This module exports the identifier [`decodeString`][api-decode-string]. +There is no default export. -micromatch 4.0.5 -MIT -The MIT License (MIT) +### `decodeString(value)` -Copyright (c) 2014-present, Jon Schlinkert. +Decode markdown strings (which occur in places such as fenced code info strings, +destinations, labels, and titles). -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +The “string” content type allows character escapes and -references. +This decodes those. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +* `value` (`string`) + — value to decode +###### Returns -mime-db 1.52.0 -MIT -(The MIT License) +Decoded value (`string`). -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015-2022 Douglas Christopher Wilson +## Types -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +This package is fully typed with [TypeScript][]. +It exports no additional types. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-decode-string@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -mime-types 2.1.35 -MIT -(The MIT License) +## Security -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +## Contribute -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. +## License -mime 1.6.0 -MIT -The MIT License (MIT) +[MIT][license] © [Titus Wormer][author] -Copyright (c) 2010 Benjamin Thomas, Robert Kieffer + -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[build]: https://github.com/micromark/micromark/actions -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +[coverage]: https://codecov.io/github/micromark/micromark -mime 3.0.0 -MIT -The MIT License (MIT) +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg -Copyright (c) 2010 Benjamin Thomas, Robert Kieffer +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -mimic-fn 2.1.0 -MIT -MIT License +[opencollective]: https://opencollective.com/unified -Copyright (c) Sindre Sorhus (sindresorhus.com) +[npm]: https://docs.npmjs.com/cli/install -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[esmsh]: https://esm.sh -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -mimic-fn 4.0.0 -MIT -MIT License +[license]: https://github.com/micromark/micromark/blob/main/license -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +[author]: https://wooorm.com -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[health]: https://github.com/micromark/.github -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md +[support]: https://github.com/micromark/.github/blob/main/support.md -min-indent 1.0.1 -MIT +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -The MIT License (MIT) +[typescript]: https://www.typescriptlang.org -Copyright (c) Sindre Sorhus (sindresorhus.com), James Kyle (thejameskyle.com) +[micromark]: https://github.com/micromark/micromark -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[api-decode-string]: #decodestringvalue -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +micromark-util-encode 1.1.0 +MIT +# micromark-util-encode +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -minimatch 3.1.2 -ISC -The ISC License +[micromark][] utility to encode dangerous html characters. -Copyright (c) Isaac Z. Schlueter and Contributors +## Contents -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`encode(value)`](#encodevalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## What is this? +This package exposes an algorithm to make text safe for embedding in HTML. -minimatch 5.1.6 -ISC -The ISC License +## When should I use this? -Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors +This package might be useful when you are making your own micromark extensions. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +## Install -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: +```sh +npm install micromark-util-encode +``` -minimatch 9.0.1 -ISC -The ISC License +In Deno with [`esm.sh`][esmsh]: -Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors +```js +import {encode} from 'https://esm.sh/micromark-util-encode@1' +``` -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +In browsers with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +```html + +``` +## Use -minimatch 9.0.3 -ISC -The ISC License +```js +import {encode} from 'micromark-util-encode' -Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors +encode('<3') // '<3' +``` -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +## API -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +This module exports the identifier [`encode`][api-encode]. +There is no default export. +### `encode(value)` -minimist 1.2.8 -MIT -This software is released under the MIT license: +Encode only the dangerous HTML characters. -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +This ensures that certain characters which have special meaning in HTML are +dealt with. +Technically, we can skip `>` and `"` in many cases, but CM includes them. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* `value` (`string`) + — value to encode +###### Returns -minipass-collect 1.0.2 -ISC -The ISC License +Encoded value (`string`). -Copyright (c) Isaac Z. Schlueter and Contributors +## Types -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +This package is fully typed with [TypeScript][]. +It exports no additional types. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## Compatibility +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. -minipass-fetch 3.0.4 -MIT -The MIT License (MIT) +This package works with `micromark` version 3+. -Copyright (c) Isaac Z. Schlueter and Contributors -Copyright (c) 2016 David Frank +## Security -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Contribute -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. ---- +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Note: This is a derivative work based on "node-fetch" by David Frank, -modified and distributed under the terms of the MIT license above. -https://github.com/bitinn/node-fetch +## License +[MIT][license] © [Titus Wormer][author] -minipass-flush 1.0.5 -ISC -The ISC License + -Copyright (c) Isaac Z. Schlueter and Contributors +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[build]: https://github.com/micromark/micromark/actions -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +[coverage]: https://codecov.io/github/micromark/micromark -minipass-json-stream 1.0.1 -MIT -The MIT License +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg -Copyright (c) Isaac Z. Schlueter and Contributors -Copyright (c) 2011 Dominic Tarr +[downloads]: https://www.npmjs.com/package/micromark-util-encode -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[bundle-size]: https://bundlejs.com/?q=micromark-util-encode -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg ----- -This is a derivative work based on JSONStream by Dominic Tarr, modified and -redistributed according to the terms of the MIT license above. -https://github.com/dominictarr/JSONStream +[backers-badge]: https://opencollective.com/unified/backers/badge.svg +[opencollective]: https://opencollective.com/unified -minipass-pipeline 1.2.4 -ISC -The ISC License +[npm]: https://docs.npmjs.com/cli/install -Copyright (c) Isaac Z. Schlueter and Contributors +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[esmsh]: https://esm.sh -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -minipass-sized 1.0.3 -ISC -The ISC License +[license]: https://github.com/micromark/micromark/blob/main/license -Copyright (c) Isaac Z. Schlueter and Contributors +[author]: https://wooorm.com -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -minipass 3.3.6 -ISC -The ISC License +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[typescript]: https://www.typescriptlang.org -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[micromark]: https://github.com/micromark/micromark +[api-encode]: #encodevalue -minipass 5.0.0 -ISC -The ISC License -Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors +micromark-util-encode 2.0.0 +MIT +# micromark-util-encode -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[micromark][] utility to encode dangerous html characters. +## Contents -minipass 7.0.4 -ISC -The ISC License +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`encode(value)`](#encodevalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors +## What is this? -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +This package exposes an algorithm to make text safe for embedding in HTML. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## When should I use this? +This package might be useful when you are making your own micromark extensions. -minizlib 2.1.2 -MIT -Minizlib was created by Isaac Z. Schlueter. -It is a derivative work of the Node.js project. +## Install -""" -Copyright Isaac Z. Schlueter and Contributors -Copyright Node.js contributors. All rights reserved. -Copyright Joyent, Inc. and other Node contributors. All rights reserved. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: +```sh +npm install micromark-util-encode +``` -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +In Deno with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -""" +```js +import {encode} from 'https://esm.sh/micromark-util-encode@1' +``` +In browsers with [`esm.sh`][esmsh]: -mkdirp 1.0.4 -MIT -Copyright James Halliday (mail@substack.net) and Isaac Z. Schlueter (i@izs.me) +```html + +``` -This project is free software released under the MIT license: +## Use -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +```js +import {encode} from 'micromark-util-encode' -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +encode('<3') // '<3' +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +## API +This module exports the identifier [`encode`][api-encode]. +There is no default export. -mlly 1.4.2 -MIT -MIT License +### `encode(value)` -Copyright (c) Pooya Parsa +Encode only the dangerous HTML characters. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This ensures that certain characters which have special meaning in HTML are +dealt with. +Technically, we can skip `>` and `"` in many cases, but CM includes them. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +* `value` (`string`) + — value to encode +###### Returns -monaco-editor 0.44.0 -MIT -The MIT License (MIT) +Encoded value (`string`). -Copyright (c) 2016 - present Microsoft Corporation +## Types -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is fully typed with [TypeScript][]. +It exports no additional types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-encode@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -mri 1.2.0 -MIT -The MIT License (MIT) +## Security -Copyright (c) Luke Edwards (lukeed.com) +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## Contribute -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. +## License -mrmime 1.0.1 -MIT -The MIT License (MIT) +[MIT][license] © [Titus Wormer][author] -Copyright (c) Luke Edwards (https://lukeed.com) + -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[build]: https://github.com/micromark/micromark/actions -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +[coverage]: https://codecov.io/github/micromark/micromark -ms 2.0.0 -MIT -The MIT License (MIT) +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg -Copyright (c) 2016 Zeit, Inc. +[downloads]: https://www.npmjs.com/package/micromark-util-encode -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[bundle-size]: https://bundlejs.com/?q=micromark-util-encode -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -ms 2.1.2 -MIT -The MIT License (MIT) +[opencollective]: https://opencollective.com/unified -Copyright (c) 2016 Zeit, Inc. +[npm]: https://docs.npmjs.com/cli/install -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[esmsh]: https://esm.sh -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -ms 2.1.3 -MIT -The MIT License (MIT) +[license]: https://github.com/micromark/micromark/blob/main/license -Copyright (c) 2020 Vercel, Inc. +[author]: https://wooorm.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -nanoid 3.3.6 -MIT -The MIT License (MIT) +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright 2017 Andrey Sitnik +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +[typescript]: https://www.typescriptlang.org -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[micromark]: https://github.com/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[api-encode]: #encodevalue -nanoid 4.0.2 +micromark-util-html-tag-name 1.2.0 MIT -The MIT License (MIT) - -Copyright 2017 Andrey Sitnik - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +# micromark-util-html-tag-name -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[micromark][] utility with list of html tag names. +## Contents -napi-wasm 1.1.0 -MIT -# napi-wasm +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`htmlBlockNames`](#htmlblocknames) + * [`htmlRawNames`](#htmlrawnames) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -An implementation of the [napi](https://nodejs.org/api/n-api.html) API for WASM. Enables using some native Node modules in browsers and other environments. +## What is this? -## Setup +This package exposes a list of known tag names to markdown. -To use napi-wasm, there are a few requirements: +## When should I use this? -1. Configure your linker to export an indirect function table. With ldd, this is the `--export-table` flag. This enables JavaScript to call callback functions registered by WASM. It is exposed in the WebAssembly exports as `__indirect_function_table`. -2. Export a function from your WASM build named `napi_register_module_v1` (Node's default), or `napi_register_wasm_v1` for WASM-specific builds. This is called during initialization to setup the `exports` object for your module. It receives an environment and an exports object pointer as arguments, which you can add properties to. -3. Include a function named `napi_wasm_malloc` in your WASM build. This is called from JavaScript by napi-wasm to allocate memory in the WASM heap. It should accept a `uint32` size argument indicating the number of bytes to allocate, and return a `uint8` pointer to allocated memory. -4. Compile for the `wasm32-unknown-unknown` target. +This package is only useful if you want to build an alternative to micromark. -### In Rust +## Install -The above steps should apply for any programming language, but here's an example in Rust. First, define a `napi_wasm_malloc` function so JavaScript can allocate memory in the WASM heap using the default allocator. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -```rust -use std::alloc::{alloc, Layout}; +```sh +npm install micromark-util-html-tag-name +``` -#[no_mangle] -pub extern "C" fn napi_wasm_malloc(size: usize) -> *mut u8 { - let align = std::mem::align_of::(); - if let Ok(layout) = Layout::from_size_align(size, align) { - unsafe { - if layout.size() > 0 { - let ptr = alloc(layout); - if !ptr.is_null() { - return ptr; - } - } else { - return align as *mut u8; - } - } - } +In Deno with [`esm.sh`][esmsh]: - std::process::abort(); -} +```js +import {htmlBlockNames, htmlRawNames} from 'https://esm.sh/micromark-util-html-tag-name@1' ``` -Next, implement `napi_register_wasm_v1` to register your module exports. We'll use the [napi-rs](https://github.com/napi-rs/napi-rs) bindings in this example to make it a bit nicer than calling C APIs directly. Note that the napi-rs `#[module_exports]` macro currently doesn't work in WASM because Rust doesn't support ctor setup functions in WASM targets yet, so we'll need to do this manually. +In browsers with [`esm.sh`][esmsh]: -```rust -use napi::{Env, JsObject, NapiValue}; +```html + +``` -#[no_mangle] -pub unsafe extern "C" fn napi_register_wasm_v1(raw_env: napi::sys::napi_env, raw_exports: napi::sys::napi_value) { - let env = Env::from_raw(raw_env); - let exports = JsObject::from_raw_unchecked(raw_env, raw_exports); +## Use - exports.create_named_method("transform", transform); -} +```js +import {htmlBlockNames, htmlRawNames} from 'micromark-util-html-tag-name' -#[js_function(1)] -fn transform(ctx: CallContext) -> napi::Result { - // ... -} +console.log(htmlBlockNames) // ['address', 'article', …] +console.log(htmlRawNames) // ['pre', 'script', …] ``` -To compile, you need to export a function table and use the correct target. +## API -```shell - RUSTFLAGS="-C link-arg=--export-table" cargo build --target wasm32-unknown-unknown -``` +This module exports the identifiers [`htmlBlockNames`][api-html-block-names] +and [`htmlRawNames`][api-html-raw-names]. +There is no default export. -This will output a file in `target/wasm32-unknown-unknown/debug/YOUR_CRATE.wasm` which you can load in a JavaScript environment. +### `htmlBlockNames` -You can also put the rust flags in a `.cargo/config.toml` file so you don't need to provide the environment variable each time you run `cargo build`. +List of lowercase HTML “block” tag names (`Array`). -```toml -[target.wasm32-unknown-unknown] -rustflags = ["-C", "link-arg=--export-table"] -``` +The list, when parsing HTML (flow), results in more relaxed rules (condition +6\). +Because they are known blocks, the HTML-like syntax doesn’t have to be strictly +parsed. +For tag names not in this list, a more strict algorithm (condition 7) is used +to detect whether the HTML-like syntax is seen as HTML (flow) or not. -### Loading +This is copied from: +. -To load a WASM file and initialize a napi environment, you'll need to import the `napi-wasm` package. You instantiate a WASM module as usual, providing `napi` as the `env` import key. This provides the napi functions for your WASM module to use. +> 👉 **Note**: `search` was added in `CommonMark@0.31`. -Then, pass the WASM instance to the `Environment` constructor to setup a napi environment. This will call `napi_register_wasm_v1` or `napi_register_module_v1` to setup the exports object. Then you can call functions on the exports object as you would in Node. +### `htmlRawNames` -```js -import { Environment, napi } from 'napi-wasm'; +List of lowercase HTML “raw” tag names (`Array`). -// Construct a URL and instantiate a WebAssembly module as usual. -const url = new URL('path/to/lib.wasm', import.meta.url); -const { instance } = await WebAssembly.instantiateStreaming(fetch(url), { - env: napi -}); +The list, when parsing HTML (flow), results in HTML that can include lines +without exiting, until a closing tag also in this list is found (condition +1\). -// Create an environment. -let env = new Environment(instance); -let exports = env.exports; +This module is copied from: +. -// Use exports as usual! -exports.transform({ - // ... -}); -``` +> 👉 **Note**: `textarea` was added in `CommonMark@0.30`. -When you are done with an `Environment`, call the `destroy()` function to clean up memory. +## Types +This package is fully typed with [TypeScript][]. +It exports no additional types. -natural-compare 1.4.0 -MIT +## Compatibility -[Build]: http://img.shields.io/travis/litejs/natural-compare-lite.png -[Coverage]: http://img.shields.io/coveralls/litejs/natural-compare-lite.png -[1]: https://travis-ci.org/litejs/natural-compare-lite -[2]: https://coveralls.io/r/litejs/natural-compare-lite -[npm package]: https://npmjs.org/package/natural-compare-lite -[GitHub repo]: https://github.com/litejs/natural-compare-lite +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. +This package works with `micromark` version 3+. +## Security - @version 1.4.0 - @date 2015-10-26 - @stability 3 - Stable +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. +## Contribute -Natural Compare – [![Build][]][1] [![Coverage][]][2] -=============== +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -Compare strings containing a mix of letters and numbers -in the way a human being would in sort order. -This is described as a "natural ordering". +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -```text -Standard sorting: Natural order sorting: - img1.png img1.png - img10.png img2.png - img12.png img10.png - img2.png img12.png -``` +## License -String.naturalCompare returns a number indicating -whether a reference string comes before or after or is the same -as the given string in sort order. -Use it with builtin sort() function. +[MIT][license] © [Titus Wormer][author] + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -### Installation +[build]: https://github.com/micromark/micromark/actions -- In browser +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -```html - -``` +[coverage]: https://codecov.io/github/micromark/micromark -- In node.js: `npm install natural-compare-lite` +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-html-tag-name.svg -```javascript -require("natural-compare-lite") -``` +[downloads]: https://www.npmjs.com/package/micromark-util-html-tag-name -### Usage +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-html-tag-name -```javascript -// Simple case sensitive example -var a = ["z1.doc", "z10.doc", "z17.doc", "z2.doc", "z23.doc", "z3.doc"]; -a.sort(String.naturalCompare); -// ["z1.doc", "z2.doc", "z3.doc", "z10.doc", "z17.doc", "z23.doc"] +[bundle-size]: https://bundlejs.com/?q=micromark-util-html-tag-name -// Use wrapper function for case insensitivity -a.sort(function(a, b){ - return String.naturalCompare(a.toLowerCase(), b.toLowerCase()); -}) +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -// In most cases we want to sort an array of objects -var a = [ {"street":"350 5th Ave", "room":"A-1021"} - , {"street":"350 5th Ave", "room":"A-21046-b"} ]; +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -// sort by street, then by room -a.sort(function(a, b){ - return String.naturalCompare(a.street, b.street) || String.naturalCompare(a.room, b.room); -}) +[opencollective]: https://opencollective.com/unified -// When text transformation is needed (eg toLowerCase()), -// it is best for performance to keep -// transformed key in that object. -// There are no need to do text transformation -// on each comparision when sorting. -var a = [ {"make":"Audi", "model":"A6"} - , {"make":"Kia", "model":"Rio"} ]; +[npm]: https://docs.npmjs.com/cli/install -// sort by make, then by model -a.map(function(car){ - car.sort_key = (car.make + " " + car.model).toLowerCase(); -}) -a.sort(function(a, b){ - return String.naturalCompare(a.sort_key, b.sort_key); -}) -``` +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -- Works well with dates in ISO format eg "Rev 2012-07-26.doc". +[esmsh]: https://esm.sh +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -### Custom alphabet +[chat]: https://github.com/micromark/micromark/discussions -It is possible to configure a custom alphabet -to achieve a desired order. +[license]: https://github.com/micromark/micromark/blob/main/license -```javascript -// Estonian alphabet -String.alphabet = "ABDEFGHIJKLMNOPRSŠZŽTUVÕÄÖÜXYabdefghijklmnoprsšzžtuvõäöüxy" -["t", "z", "x", "õ"].sort(String.naturalCompare) -// ["z", "t", "õ", "x"] +[author]: https://wooorm.com -// Russian alphabet -String.alphabet = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя" -["Ё", "А", "Б"].sort(String.naturalCompare) -// ["А", "Б", "Ё"] -``` +[health]: https://github.com/micromark/.github +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -External links --------------- +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -- [GitHub repo][https://github.com/litejs/natural-compare-lite] -- [jsperf test](http://jsperf.com/natural-sort-2/12) +[support]: https://github.com/micromark/.github/blob/main/support.md +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Licence -------- +[typescript]: https://www.typescriptlang.org -Copyright (c) 2012-2015 Lauri Rooden <lauri@rooden.ee> -[The MIT License](http://lauri.rooden.ee/mit-license.txt) +[micromark]: https://github.com/micromark/micromark +[api-html-block-names]: #htmlblocknames +[api-html-raw-names]: #htmlrawnames -negotiator 0.6.3 +micromark-util-html-tag-name 2.0.0 MIT -(The MIT License) +# micromark-util-html-tag-name -Copyright (c) 2012-2014 Federico Romero -Copyright (c) 2012-2014 Isaac Z. Schlueter -Copyright (c) 2014-2015 Douglas Christopher Wilson +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +[micromark][] utility with list of html tag names. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Contents -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`htmlBlockNames`](#htmlblocknames) + * [`htmlRawNames`](#htmlrawnames) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) +## What is this? -neo-async 2.6.2 -MIT -MIT License +This package exposes a list of known tag names to markdown. -Copyright (c) 2014-2018 Suguru Motegi -Based on Async.js, Copyright Caolan McMahon +## When should I use this? -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is only useful if you want to build an alternative to micromark. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Install -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: +```sh +npm install micromark-util-html-tag-name +``` -nitropack 2.7.2 -MIT -MIT License +In Deno with [`esm.sh`][esmsh]: -Copyright (c) Pooya Parsa and Nitro contributors +```js +import {htmlBlockNames, htmlRawNames} from 'https://esm.sh/micromark-util-html-tag-name@1' +``` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In browsers with [`esm.sh`][esmsh]: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +```html + +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## Use +```js +import {htmlBlockNames, htmlRawNames} from 'micromark-util-html-tag-name' -node-addon-api 7.0.0 -MIT -The MIT License (MIT) -===================== +console.log(htmlBlockNames) // ['address', 'article', …] +console.log(htmlRawNames) // ['pre', 'script', …] +``` -Copyright (c) 2017 Node.js API collaborators ------------------------------------ +## API -*Node.js API collaborators listed at * +This module exports the identifiers [`htmlBlockNames`][api-html-block-names] +and [`htmlRawNames`][api-html-raw-names]. +There is no default export. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +### `htmlBlockNames` -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +List of lowercase HTML “block” tag names (`Array`). -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +The list, when parsing HTML (flow), results in more relaxed rules (condition +6\). +Because they are known blocks, the HTML-like syntax doesn’t have to be strictly +parsed. +For tag names not in this list, a more strict algorithm (condition 7) is used +to detect whether the HTML-like syntax is seen as HTML (flow) or not. -node-fetch-native 1.4.1 -MIT -MIT License +This is copied from: +. -Copyright (c) Pooya Parsa +> 👉 **Note**: `search` was added in `CommonMark@0.31`. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +### `htmlRawNames` -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +List of lowercase HTML “raw” tag names (`Array`). -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The list, when parsing HTML (flow), results in HTML that can include lines +without exiting, until a closing tag also in this list is found (condition +1\). +This module is copied from: +. -node-fetch 2.7.0 -MIT -The MIT License (MIT) +> 👉 **Note**: `textarea` was added in `CommonMark@0.30`. -Copyright (c) 2016 David Frank +## Types -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is fully typed with [TypeScript][]. +It exports no additional types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-html-tag-name@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. +## Security -node-forge 1.3.1 -(BSD-3-Clause OR GPL-2.0) -You may use the Forge project under the terms of either the BSD License or the -GNU General Public License (GPL) Version 2. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -The BSD License is recommended for most projects. It is simple and easy to -understand and it places almost no restrictions on what you can do with the -Forge project. +## Contribute -If the GPL suits your project better you are also free to use Forge under -that license. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -You don't have to do anything special to choose one license or the other and -you don't have to notify anyone which license you are using. You are free to -use this project in commercial projects as long as the copyright header is -left intact. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -If you are a commercial entity and use this set of libraries in your -commercial software then reasonable payment to Digital Bazaar, if you can -afford it, is not required but is expected and would be appreciated. If this -library saves you time, then it's saving you money. The cost of developing -the Forge software was on the order of several hundred hours and tens of -thousands of dollars. We are attempting to strike a balance between helping -the development community while not being taken advantage of by lucrative -commercial entities for our efforts. +## License -------------------------------------------------------------------------------- -New BSD License (3-clause) -Copyright (c) 2010, Digital Bazaar, Inc. -All rights reserved. +[MIT][license] © [Titus Wormer][author] -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of Digital Bazaar, Inc. nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. + -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL DIGITAL BAZAAR BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -------------------------------------------------------------------------------- - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 +[build]: https://github.com/micromark/micromark/actions - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg - Preamble +[coverage]: https://codecov.io/github/micromark/micromark - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-html-tag-name.svg - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. +[downloads]: https://www.npmjs.com/package/micromark-util-html-tag-name - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-html-tag-name - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. +[bundle-size]: https://bundlejs.com/?q=micromark-util-html-tag-name - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. +[backers-badge]: https://opencollective.com/unified/backers/badge.svg - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. +[opencollective]: https://opencollective.com/unified - The precise terms and conditions for copying, distribution and -modification follow. +[npm]: https://docs.npmjs.com/cli/install - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". +[esmsh]: https://esm.sh -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. +[chat]: https://github.com/micromark/micromark/discussions -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. +[license]: https://github.com/micromark/micromark/blob/main/license - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: +[author]: https://wooorm.com - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. +[health]: https://github.com/micromark/.github - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. +[support]: https://github.com/micromark/.github/blob/main/support.md -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. +[typescript]: https://www.typescriptlang.org - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: +[micromark]: https://github.com/micromark/micromark - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, +[api-html-block-names]: #htmlblocknames - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, +[api-html-raw-names]: #htmlrawnames - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. +micromark-util-normalize-identifier 1.1.0 +MIT +# micromark-util-normalize-identifier -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. +[micromark][] utility normalize identifiers. - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. +## Contents - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`normalizeIdentifier(value)`](#normalizeidentifiervalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. +## What is this? -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. +This package exposes an algorithm to normalize identifiers found in markdown. -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. +## When should I use this? -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. +This package might be useful when you are making your own micromark extensions. - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. +## Install - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. +```sh +npm install micromark-util-normalize-identifier +``` - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. +In Deno with [`esm.sh`][esmsh]: - NO WARRANTY +```js +import {normalizeIdentifier} from 'https://esm.sh/micromark-util-normalize-identifier@1' +``` - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. +In browsers with [`esm.sh`][esmsh]: - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. +```html + +``` +## Use +```js +import {normalizeIdentifier} from 'micromark-util-normalize-identifier' -node-gyp-build 4.6.1 -MIT -The MIT License (MIT) +normalizeIdentifier(' a ') // 'A' +normalizeIdentifier('a\t\r\nb') // 'A B' +normalizeIdentifier('ТОЛПОЙ') // 'ТОЛПОЙ' +normalizeIdentifier('Толпой') // 'ТОЛПОЙ' +``` -Copyright (c) 2017 Mathias Buus +## API -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This module exports the identifier +[`normalizeIdentifier`][api-normalize-identifier]. +There is no default export. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +### `normalizeIdentifier(value)` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Normalize an identifier (as found in references, definitions). +Collapses markdown whitespace, trim, and then lower- and uppercase. -node-gyp 10.0.1 -MIT -(The MIT License) +Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their +lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different +uppercase character (U+0398 (`Θ`)). +So, to get a canonical form, we perform both lower- and uppercase. -Copyright (c) 2012 Nathan Rajlich +Using uppercase last makes sure keys will never interact with default +prototypal values (such as `constructor`): nothing in the prototype of `Object` +is uppercase. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +###### Parameters -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +* `value` (`string`) + — identifier to normalize -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +###### Returns +Normalized identifier (`string`). -node-releases 2.0.13 -MIT -The MIT License +## Types -Copyright (c) 2017 Sergey Rubanov (https://github.com/chicoxyzzy) +This package is fully typed with [TypeScript][]. +It exports no additional types. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## Compatibility -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +This package works with `micromark` version 3+. +## Security -non-layered-tidy-tree-layout 2.0.2 -MIT -MIT License +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Copyright (c) 2019 Michael Wong +## Contribute -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## License -nopt 5.0.0 -ISC -The ISC License +[MIT][license] © [Titus Wormer][author] -Copyright (c) Isaac Z. Schlueter and Contributors + -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[build]: https://github.com/micromark/micromark/actions +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -nopt 6.0.0 -ISC -The ISC License +[coverage]: https://codecov.io/github/micromark/micromark -Copyright (c) Isaac Z. Schlueter and Contributors +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier -nopt 7.2.0 -ISC -The ISC License +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -Copyright (c) Isaac Z. Schlueter and Contributors +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[opencollective]: https://opencollective.com/unified -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[npm]: https://docs.npmjs.com/cli/install +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -normalize-package-data 2.5.0 -BSD-2-Clause -This package contains code originally written by Isaac Z. Schlueter. -Used with permission. +[esmsh]: https://esm.sh -Copyright (c) Meryn Stol ("Author") -All rights reserved. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -The BSD License +[chat]: https://github.com/micromark/micromark/discussions -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: +[license]: https://github.com/micromark/micromark/blob/main/license -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. +[author]: https://wooorm.com -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. +[health]: https://github.com/micromark/.github -THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -normalize-package-data 5.0.0 -BSD-2-Clause -This package contains code originally written by Isaac Z. Schlueter. -Used with permission. +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright (c) Meryn Stol ("Author") -All rights reserved. +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -The BSD License +[typescript]: https://www.typescriptlang.org -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +[micromark]: https://github.com/micromark/micromark -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +[api-normalize-identifier]: #normalizeidentifiervalue -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +micromark-util-normalize-identifier 2.0.0 +MIT +# micromark-util-normalize-identifier +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -normalize-package-data 6.0.0 -BSD-2-Clause -This package contains code originally written by Isaac Z. Schlueter. -Used with permission. +[micromark][] utility normalize identifiers. -Copyright (c) Meryn Stol ("Author") -All rights reserved. +## Contents -The BSD License +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`normalizeIdentifier(value)`](#normalizeidentifiervalue) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +## What is this? -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +This package exposes an algorithm to normalize identifiers found in markdown. -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +## When should I use this? -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +This package might be useful when you are making your own micromark extensions. +## Install -normalize-path 3.0.0 -MIT -The MIT License (MIT) +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Copyright (c) 2014-2018, Jon Schlinkert. +```sh +npm install micromark-util-normalize-identifier +``` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In Deno with [`esm.sh`][esmsh]: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +```js +import {normalizeIdentifier} from 'https://esm.sh/micromark-util-normalize-identifier@1' +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +In browsers with [`esm.sh`][esmsh]: +```html + +``` -normalize-range 0.1.2 -MIT -The MIT License (MIT) +## Use -Copyright (c) James Talmage (github.com/jamestalmage) +```js +import {normalizeIdentifier} from 'micromark-util-normalize-identifier' -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +normalizeIdentifier(' a ') // 'A' +normalizeIdentifier('a\t\r\nb') // 'A B' +normalizeIdentifier('ТОЛПОЙ') // 'ТОЛПОЙ' +normalizeIdentifier('Толпой') // 'ТОЛПОЙ' +``` -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +## API -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +This module exports the identifier +[`normalizeIdentifier`][api-normalize-identifier]. +There is no default export. +### `normalizeIdentifier(value)` -npm-bundled 3.0.0 -ISC -The ISC License +Normalize an identifier (as found in references, definitions). -Copyright (c) npm, Inc. and Contributors +Collapses markdown whitespace, trim, and then lower- and uppercase. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +Some characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their +lowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different +uppercase character (U+0398 (`Θ`)). +So, to get a canonical form, we perform both lower- and uppercase. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +Using uppercase last makes sure keys will never interact with default +prototypal values (such as `constructor`): nothing in the prototype of `Object` +is uppercase. +###### Parameters -npm-install-checks 6.3.0 -BSD-2-Clause -Copyright (c) Robert Kowalski and Isaac Z. Schlueter ("Authors") -All rights reserved. +* `value` (`string`) + — identifier to normalize -The BSD License +###### Returns -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: +Normalized identifier (`string`). -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. +## Types -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. +This package is fully typed with [TypeScript][]. +It exports no additional types. -THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +## Compatibility +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -npm-normalize-package-bin 3.0.1 -ISC -The ISC License +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-normalize-identifier@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -Copyright (c) npm, Inc. +## Security -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## Contribute +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -npm-package-arg 11.0.1 -ISC -The ISC License +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Copyright (c) npm, Inc. +## License -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[MIT][license] © [Titus Wormer][author] -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -npm-packlist 8.0.0 -ISC -The ISC License +[build]: https://github.com/micromark/micromark/actions -Copyright (c) Isaac Z. Schlueter and Contributors +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[coverage]: https://codecov.io/github/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg +[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier -npm-pick-manifest 9.0.0 -ISC -ISC License +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier -Copyright (c) npm, Inc. +[bundle-size]: https://bundlejs.com/?q=micromark-util-normalize-identifier -Permission to use, copy, modify, and/or distribute this software for -any purpose with or without fee is hereby granted, provided that the -above copyright notice and this permission notice appear in all copies. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS -ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR -CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE -USE OR PERFORMANCE OF THIS SOFTWARE. +[backers-badge]: https://opencollective.com/unified/backers/badge.svg +[opencollective]: https://opencollective.com/unified -npm-registry-fetch 16.1.0 -ISC - +[npm]: https://docs.npmjs.com/cli/install -ISC License +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -Copyright npm, Inc. +[esmsh]: https://esm.sh -Permission to use, copy, modify, and/or distribute this -software for any purpose with or without fee is hereby -granted, provided that the above copyright notice and this -permission notice appear in all copies. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL -WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO -EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE -USE OR PERFORMANCE OF THIS SOFTWARE. +[chat]: https://github.com/micromark/micromark/discussions +[license]: https://github.com/micromark/micromark/blob/main/license -npm-run-path 4.0.1 -MIT -MIT License +[author]: https://wooorm.com -Copyright (c) Sindre Sorhus (sindresorhus.com) +[health]: https://github.com/micromark/.github -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[support]: https://github.com/micromark/.github/blob/main/support.md +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -npm-run-path 5.1.0 -MIT -MIT License +[typescript]: https://www.typescriptlang.org -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +[micromark]: https://github.com/micromark/micromark -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[api-normalize-identifier]: #normalizeidentifiervalue -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +micromark-util-resolve-all 1.1.0 +MIT +# micromark-util-resolve-all +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -npmlog 5.0.1 -ISC -The ISC License +[micromark][] utility to resolve subtokens. -Copyright (c) Isaac Z. Schlueter and Contributors +[Resolvers][resolver] are functions that take events and manipulate them. +This is needed for example because media (links, images) and attention (strong, +italic) aren’t parsed left-to-right. +Instead, their openings and closings are parsed, and when done, their openings +and closings are matched, and left overs are turned into plain text. +Because media and attention can’t overlap, we need to perform that operation +when one closing matches an opening, too. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +## Contents -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`resolveAll(constructs, events, context)`](#resolveallconstructs-events-context) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) +## What is this? -nth-check 2.1.1 -BSD-2-Clause -Copyright (c) Felix Böhm -All rights reserved. +This package exposes a micromark internal that you probably don’t need. -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +## When should I use this? -Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +This package might be useful when you are making your own micromark extensions. -Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +## Install -THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: +```sh +npm install micromark-util-resolve-all +``` -nuxi 3.9.1 -MIT -The MIT License (MIT) +In Deno with [`esm.sh`][esmsh]: -Copyright (c) Nuxt Team +```js +import {resolveAll} from 'https://esm.sh/micromark-util-resolve-all@1' +``` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In browsers with [`esm.sh`][esmsh]: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +```html + +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## Use +```js +import {push} from 'micromark-util-chunked' +import {resolveAll} from 'micromark-util-resolve-all' -nuxt-vitest 0.11.3 -MIT -MIT License +/** + * @type {Resolver} + */ +function resolveAllAttention(events, context) { + // … -Copyright (c) 2022 Daniel Roe + // Walk through all events. + while (++index < events.length) { + // Find a token that can close. + if ( + events[index][0] === 'enter' && + events[index][1].type === 'attentionSequence' && + events[index][1]._close + ) { + open = index -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + // Now walk back to find an opener. + while (open--) { + // Find a token that can open the closer. + if ( + // … + ) { + // … + // Opening. + nextEvents = push(nextEvents, [ + // … + ]) -nuxt 3.8.1 -MIT -The MIT License (MIT) + // Between. + nextEvents = push( + nextEvents, + resolveAll( + context.parser.constructs.insideSpan.null, + events.slice(open + 1, index), + context + ) + ) -Copyright (c) 2016-present - Nuxt Team + // Closing. + nextEvents = push(nextEvents, [ + // … + ]) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + // … + } + } + } + } -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + // … +} +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## API +This module exports the identifier [`resolveAll`][api-resolve-all]. +There is no default export. -nypm 0.3.3 -MIT -MIT License +### `resolveAll(constructs, events, context)` -Copyright (c) Pooya Parsa +Call all `resolveAll`s in `constructs`. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +###### Parameters -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +* `constructs` (`Array`) + — list of constructs, optionally with `resolveAll`s +* `events` (`Array`) + — list of events +* `context` (`TokenizeContext`) + — context used by `tokenize` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +###### Returns +Changed events (`Array`). -object-assign 4.1.1 -MIT -The MIT License (MIT) +## Types -Copyright (c) Sindre Sorhus (sindresorhus.com) +This package is fully typed with [TypeScript][]. +It exports no additional types. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## Compatibility -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +This package works with `micromark` version 3+. +## Security -object-inspect 1.13.0 -MIT -MIT License +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Copyright (c) 2013 James Halliday +## Contribute -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## License +[MIT][license] © [Titus Wormer][author] -object-keys 1.1.1 -MIT -The MIT License (MIT) + -Copyright (C) 2013 Jordan Harband +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[build]: https://github.com/micromark/micromark/actions -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[coverage]: https://codecov.io/github/micromark/micromark -object.assign 4.1.4 -MIT -The MIT License (MIT) +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-resolve-all.svg -Copyright (c) 2014 Jordan Harband +[downloads]: https://www.npmjs.com/package/micromark-util-resolve-all -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-resolve-all -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[bundle-size]: https://bundlejs.com/?q=micromark-util-resolve-all -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -object.fromentries 2.0.7 -MIT -MIT License +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Copyright (c) 2018 Jordan Harband +[opencollective]: https://opencollective.com/unified -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[npm]: https://docs.npmjs.com/cli/install -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[esmsh]: https://esm.sh +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -object.groupby 1.0.1 -MIT -MIT License +[chat]: https://github.com/micromark/micromark/discussions -Copyright (c) 2023 ECMAScript Shims +[license]: https://github.com/micromark/micromark/blob/main/license -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[author]: https://wooorm.com -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -object.values 1.1.7 -MIT -The MIT License (MIT) +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright (c) 2015 Jordan Harband +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[resolver]: https://github.com/micromark/micromark/blob/a571c09/packages/micromark-util-types/index.js#L219 -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[typescript]: https://www.typescriptlang.org -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[micromark]: https://github.com/micromark/micromark +[api-resolve-all]: #resolveallconstructs-events-context -ofetch 1.3.3 +micromark-util-resolve-all 2.0.0 MIT -MIT License +# micromark-util-resolve-all -Copyright (c) Pooya Parsa +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[micromark][] utility to resolve subtokens. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[Resolvers][resolver] are functions that take events and manipulate them. +This is needed for example because media (links, images) and attention (strong, +italic) aren’t parsed left-to-right. +Instead, their openings and closings are parsed, and when done, their openings +and closings are matched, and left overs are turned into plain text. +Because media and attention can’t overlap, we need to perform that operation +when one closing matches an opening, too. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## Contents +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`resolveAll(constructs, events, context)`](#resolveallconstructs-events-context) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -ohash 1.1.3 -MIT -MIT License +## What is this? -Copyright (c) Pooya Parsa +This package exposes a micromark internal that you probably don’t need. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## When should I use this? -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +This package might be useful when you are making your own micromark extensions. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +## Install +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -on-finished 2.4.1 -MIT -(The MIT License) +```sh +npm install micromark-util-resolve-all +``` -Copyright (c) 2013 Jonathan Ong -Copyright (c) 2014 Douglas Christopher Wilson +In Deno with [`esm.sh`][esmsh]: -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +```js +import {resolveAll} from 'https://esm.sh/micromark-util-resolve-all@1' +``` -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +In browsers with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```html + +``` +## Use -once 1.4.0 -ISC -The ISC License +```js +import {push} from 'micromark-util-chunked' +import {resolveAll} from 'micromark-util-resolve-all' -Copyright (c) Isaac Z. Schlueter and Contributors +/** + * @type {Resolver} + */ +function resolveAllAttention(events, context) { + // … -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. + // Walk through all events. + while (++index < events.length) { + // Find a token that can close. + if ( + events[index][0] === 'enter' && + events[index][1].type === 'attentionSequence' && + events[index][1]._close + ) { + open = index -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + // Now walk back to find an opener. + while (open--) { + // Find a token that can open the closer. + if ( + // … + ) { + // … + // Opening. + nextEvents = push(nextEvents, [ + // … + ]) -onetime 5.1.2 -MIT -MIT License + // Between. + nextEvents = push( + nextEvents, + resolveAll( + context.parser.constructs.insideSpan.null, + events.slice(open + 1, index), + context + ) + ) -Copyright (c) Sindre Sorhus (https://sindresorhus.com) + // Closing. + nextEvents = push(nextEvents, [ + // … + ]) -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + // … + } + } + } + } -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + // … +} +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## API +This module exports the identifier [`resolveAll`][api-resolve-all]. +There is no default export. -onetime 6.0.0 -MIT -MIT License +### `resolveAll(constructs, events, context)` -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Call all `resolveAll`s in `constructs`. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +###### Parameters -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +* `constructs` (`Array`) + — list of constructs, optionally with `resolveAll`s +* `events` (`Array`) + — list of events +* `context` (`TokenizeContext`) + — context used by `tokenize` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +###### Returns +Changed events (`Array`). -open 8.4.2 -MIT -MIT License +## Types -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +This package is fully typed with [TypeScript][]. +It exports no additional types. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +## Compatibility -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-resolve-all@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. +## Security -open 9.1.0 -MIT -MIT License +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +## Contribute -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## License +[MIT][license] © [Titus Wormer][author] -openapi-typescript 6.7.0 -MIT -MIT License + -Copyright (c) 2020 Drew Powers +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[build]: https://github.com/micromark/micromark/actions -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +[coverage]: https://codecov.io/github/micromark/micromark -opentracing 0.14.7 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-resolve-all.svg - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +[downloads]: https://www.npmjs.com/package/micromark-util-resolve-all - 1. Definitions. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-resolve-all - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. +[bundle-size]: https://bundlejs.com/?q=micromark-util-resolve-all - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +[backers-badge]: https://opencollective.com/unified/backers/badge.svg - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +[opencollective]: https://opencollective.com/unified - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +[npm]: https://docs.npmjs.com/cli/install - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +[esmsh]: https://esm.sh - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +[chat]: https://github.com/micromark/micromark/discussions - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +[license]: https://github.com/micromark/micromark/blob/main/license - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +[author]: https://wooorm.com - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +[health]: https://github.com/micromark/.github - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +[securitymd]: https://github.com/micromark/.github/blob/main/security.md - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +[support]: https://github.com/micromark/.github/blob/main/support.md - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +[resolver]: https://github.com/micromark/micromark/blob/a571c09/packages/micromark-util-types/index.js#L219 - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +[typescript]: https://www.typescriptlang.org - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +[micromark]: https://github.com/micromark/micromark - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +[api-resolve-all]: #resolveallconstructs-events-context - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +micromark-util-sanitize-uri 1.2.0 +MIT +# micromark-util-sanitize-uri - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] - END OF TERMS AND CONDITIONS +[micromark][] utility to sanitize urls. - APPENDIX: How to apply the Apache License to your work. +## Contents - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`normalizeUri(value)`](#normalizeurivalue) + * [`sanitizeUri(url[, pattern])`](#sanitizeuriurl-pattern) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) - Copyright The OpenTracing Authors +## What is this? - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +This package exposes an algorithm to make URLs safe. - http://www.apache.org/licenses/LICENSE-2.0 +## When should I use this? - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +This package might be useful when you are making your own micromark extensions. +## Install -optionator 0.9.3 -MIT -Copyright (c) George Zahariev +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +```sh +npm install micromark-util-sanitize-uri +``` -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +In Deno with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +```js +import {sanitizeUri} from 'https://esm.sh/micromark-util-sanitize-uri@1' +``` +In browsers with [`esm.sh`][esmsh]: -p-limit 2.3.0 -MIT -MIT License +```html + +``` -Copyright (c) Sindre Sorhus (sindresorhus.com) +## Use -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +```js +import {sanitizeUri} from 'micromark-util-sanitize-uri' -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +sanitizeUri('https://example.com/a&b') // 'https://example.com/a&amp;b' +sanitizeUri('https://example.com/a%b') // 'https://example.com/a%25b' +sanitizeUri('https://example.com/a%20b') // 'https://example.com/a%20b' +sanitizeUri('https://example.com/👍') // 'https://example.com/%F0%9F%91%8D' +sanitizeUri('https://example.com/', /^https?$/i) // 'https://example.com/' +sanitizeUri('javascript:alert(1)', /^https?$/i) // '' +sanitizeUri('./example.jpg', /^https?$/i) // './example.jpg' +sanitizeUri('#a', /^https?$/i) // '#a' +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## API +This module exports the identifiers [`normalizeUri`][api-normalize-uri] and +[`sanitizeUri`][api-sanitize-uri]. +There is no default export. -p-limit 3.1.0 -MIT -MIT License +### `normalizeUri(value)` -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +Normalize a URL. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Encode unsafe characters with percent-encoding, skipping already encoded +sequences. -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* `value` (`string`) + — URI to normalize +###### Returns -p-limit 4.0.0 -MIT -MIT License +Normalized URI (`string`). -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +### `sanitizeUri(url[, pattern])` -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Make a value safe for injection as a URL. -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +This encodes unsafe characters with percent-encoding and skips already +encoded sequences (see [`normalizeUri`][api-normalize-uri]). +Further unsafe characters are encoded as character references (see +[`micromark-util-encode`][micromark-util-encode]). -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +A regex of allowed protocols can be given, in which case the URL is sanitized. +For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or +`/^https?$/i` for `img[src]` (this is what `github.com` allows). +If the URL includes an unknown protocol (one not matched by `protocol`, such +as a dangerous example, `javascript:`), the value is ignored. +###### Parameters -p-locate 4.1.0 -MIT -MIT License +* `url` (`string`) + — URI to sanitize +* `pattern` (`RegExp`, optional) + — allowed protocols -Copyright (c) Sindre Sorhus (sindresorhus.com) +###### Returns -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Sanitized URI (`string`). -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +## Types -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This package is fully typed with [TypeScript][]. +It exports no additional types. +## Compatibility -p-locate 5.0.0 -MIT -MIT License +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +This package works with `micromark` version 3+. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +## Security -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## Contribute +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -p-map 4.0.0 -MIT -MIT License +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +## License -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[MIT][license] © [Titus Wormer][author] -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg +[build]: https://github.com/micromark/micromark/actions -p-try 2.2.0 -MIT -MIT License +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -Copyright (c) Sindre Sorhus (sindresorhus.com) +[coverage]: https://codecov.io/github/micromark/micromark -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-sanitize-uri.svg -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[downloads]: https://www.npmjs.com/package/micromark-util-sanitize-uri -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-sanitize-uri +[bundle-size]: https://bundlejs.com/?q=micromark-util-sanitize-uri -pacote 17.0.4 -ISC -The ISC License +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -Copyright (c) Isaac Z. Schlueter, Kat Marchán, npm, Inc., and Contributors +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[opencollective]: https://opencollective.com/unified -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[npm]: https://docs.npmjs.com/cli/install +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -parent-module 1.0.1 -MIT -MIT License +[esmsh]: https://esm.sh -Copyright (c) Sindre Sorhus (sindresorhus.com) +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[chat]: https://github.com/micromark/micromark/discussions -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[license]: https://github.com/micromark/micromark/blob/main/license -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[author]: https://wooorm.com +[health]: https://github.com/micromark/.github -parse-entities 4.0.1 -MIT -(The MIT License) +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -Copyright (c) 2015 Titus Wormer +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +[support]: https://github.com/micromark/.github/blob/main/support.md -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[typescript]: https://www.typescriptlang.org +[micromark]: https://github.com/micromark/micromark -parse-git-config 3.0.0 -MIT -The MIT License (MIT) +[micromark-util-encode]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode -Copyright (c) 2015-present, Jon Schlinkert. +[api-normalize-uri]: #normalizeurivalue -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[api-sanitize-uri]: #sanitizeuriurl-pattern -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +micromark-util-sanitize-uri 2.0.0 +MIT +# micromark-util-sanitize-uri +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -parse-json 5.2.0 -MIT -MIT License +[micromark][] utility to sanitize urls. -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +## Contents -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`normalizeUri(value)`](#normalizeurivalue) + * [`sanitizeUri(url[, pattern])`](#sanitizeuriurl-pattern) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +## What is this? -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This package exposes an algorithm to make URLs safe. +## When should I use this? -parse-path 7.0.0 -MIT -The MIT License (MIT) +This package might be useful when you are making your own micromark extensions. -Copyright (c) 2015-22 Ionică Bizău (https://ionicabizau.net) +## Install -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +```sh +npm install micromark-util-sanitize-uri +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +In Deno with [`esm.sh`][esmsh]: +```js +import {sanitizeUri} from 'https://esm.sh/micromark-util-sanitize-uri@1' +``` -parse-url 8.1.0 -MIT -The MIT License (MIT) +In browsers with [`esm.sh`][esmsh]: -Copyright (c) 2015-22 Ionică Bizău (https://ionicabizau.net) +```html + +``` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## Use -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +```js +import {sanitizeUri} from 'micromark-util-sanitize-uri' -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +sanitizeUri('https://example.com/a&b') // 'https://example.com/a&amp;b' +sanitizeUri('https://example.com/a%b') // 'https://example.com/a%25b' +sanitizeUri('https://example.com/a%20b') // 'https://example.com/a%20b' +sanitizeUri('https://example.com/👍') // 'https://example.com/%F0%9F%91%8D' +sanitizeUri('https://example.com/', /^https?$/i) // 'https://example.com/' +sanitizeUri('javascript:alert(1)', /^https?$/i) // '' +sanitizeUri('./example.jpg', /^https?$/i) // './example.jpg' +sanitizeUri('#a', /^https?$/i) // '#a' +``` +## API -parse5 6.0.1 -MIT -Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin) +This module exports the identifiers [`normalizeUri`][api-normalize-uri] and +[`sanitizeUri`][api-sanitize-uri]. +There is no default export. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +### `normalizeUri(value)` -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Normalize a URL. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Encode unsafe characters with percent-encoding, skipping already encoded +sequences. +###### Parameters -parseurl 1.3.3 -MIT +* `value` (`string`) + — URI to normalize -(The MIT License) +###### Returns -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2014-2017 Douglas Christopher Wilson +Normalized URI (`string`). -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +### `sanitizeUri(url[, pattern])` -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +Make a value safe for injection as a URL. -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This encodes unsafe characters with percent-encoding and skips already +encoded sequences (see [`normalizeUri`][api-normalize-uri]). +Further unsafe characters are encoded as character references (see +[`micromark-util-encode`][micromark-util-encode]). +A regex of allowed protocols can be given, in which case the URL is sanitized. +For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or +`/^https?$/i` for `img[src]` (this is what `github.com` allows). +If the URL includes an unknown protocol (one not matched by `protocol`, such +as a dangerous example, `javascript:`), the value is ignored. -path-exists 4.0.0 -MIT -MIT License +###### Parameters -Copyright (c) Sindre Sorhus (sindresorhus.com) +* `url` (`string`) + — URI to sanitize +* `pattern` (`RegExp`, optional) + — allowed protocols -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +###### Returns -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Sanitized URI (`string`). -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## Types +This package is fully typed with [TypeScript][]. +It exports no additional types. -path-is-absolute 1.0.1 -MIT -The MIT License (MIT) +## Compatibility -Copyright (c) Sindre Sorhus (sindresorhus.com) +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-sanitize-uri@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +## Security -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. +## Contribute -path-key 3.1.1 -MIT -MIT License +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -Copyright (c) Sindre Sorhus (sindresorhus.com) +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +## License -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[MIT][license] © [Titus Wormer][author] -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -path-key 4.0.0 -MIT -MIT License +[build]: https://github.com/micromark/micromark/actions -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[coverage]: https://codecov.io/github/micromark/micromark -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-sanitize-uri.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[downloads]: https://www.npmjs.com/package/micromark-util-sanitize-uri +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-sanitize-uri -path-parse 1.0.7 -MIT -The MIT License (MIT) +[bundle-size]: https://bundlejs.com/?q=micromark-util-sanitize-uri -Copyright (c) 2015 Javier Blanco +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[opencollective]: https://opencollective.com/unified -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[npm]: https://docs.npmjs.com/cli/install +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -path-scurry 1.10.1 -BlueOak-1.0.0 -# Blue Oak Model License +[esmsh]: https://esm.sh -Version 1.0.0 +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -## Purpose +[chat]: https://github.com/micromark/micromark/discussions -This license gives everyone as much permission to work with -this software as possible, while protecting contributors -from liability. +[license]: https://github.com/micromark/micromark/blob/main/license -## Acceptance +[author]: https://wooorm.com -In order to receive this license, you must agree to its -rules. The rules of this license are both obligations -under that agreement and conditions to your license. -You must not do anything with this software that triggers -a rule that you cannot or will not follow. +[health]: https://github.com/micromark/.github -## Copyright +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -Each contributor licenses you to do everything with this -software that would otherwise infringe that contributor's -copyright in it. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -## Notices +[support]: https://github.com/micromark/.github/blob/main/support.md -You must ensure that everyone who gets a copy of -any part of this software from you, with or without -changes, also gets the text of this license or a link to -. +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -## Excuse +[typescript]: https://www.typescriptlang.org -If anyone notifies you in writing that you have not -complied with [Notices](#notices), you can keep your -license by taking all practical steps to comply within 30 -days after the notice. If you do not do so, your license -ends immediately. +[micromark]: https://github.com/micromark/micromark -## Patent +[micromark-util-encode]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-encode -Each contributor licenses you to do everything with this -software that would otherwise infringe any patent claims -they can license or become able to license. +[api-normalize-uri]: #normalizeurivalue -## Reliability +[api-sanitize-uri]: #sanitizeuriurl-pattern -No contributor can revoke this license. -## No Liability +micromark-util-subtokenize 1.1.0 +MIT +# micromark-util-subtokenize -***As far as the law allows, this software comes as is, -without any warranty or condition, and no contributor -will be liable to anyone for any damages related to this -software or this license, under any kind of legal claim.*** +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] +[micromark][] utility to tokenize subtokens. -path-type 4.0.0 -MIT -MIT License +## Contents -Copyright (c) Sindre Sorhus (sindresorhus.com) +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`subtokenize(events)`](#subtokenizeevents) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +## What is this? -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +This package exposes a micromark internal that you probably don’t need. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## When should I use this? +This package might be useful when you are making your own micromark extensions. -pathe 1.1.1 -MIT -MIT License +## Install -Copyright (c) Pooya Parsa - Daniel Roe +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +```sh +npm install micromark-util-subtokenize +``` -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +In Deno with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +```js +import {subtokenize} from 'https://esm.sh/micromark-util-subtokenize@1' +``` --------------------------------------------------------------------------------- +In browsers with [`esm.sh`][esmsh]: -Copyright Joyent, Inc. and other Node contributors. +```html + +``` -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: +## Use -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. +```js +import {subtokenize} from 'micromark-util-subtokenize' -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. +/** + * Content is transparent: it’s parsed right now. That way, definitions are also + * parsed right now: before text in paragraphs (specifically, media) are parsed. + * + * @type {Resolver} + */ +function resolveContent(events) { + subtokenize(events) + return events +} +``` +## API -pathval 1.1.1 -MIT -MIT License +This module exports the identifiers [`subtokenize`][api-subtokenize]. +There is no default export. -Copyright (c) 2011-2013 Jake Luer jake@alogicalparadox.com +### `subtokenize(events)` -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the following conditions: +Tokenize subcontent. -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO -THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* `events` (`Array`) + — list of events +###### Returns -perfect-debounce 1.0.0 -MIT -MIT License +Whether subtokens were found (`boolean`). -Copyright (c) Pooya Parsa +## Types -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is fully typed with [TypeScript][]. +It exports no additional types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. +This package works with `micromark` version 3+. -picocolors 1.0.0 -ISC -ISC License +## Security -Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +## Contribute -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -picomatch 2.3.1 -MIT -The MIT License (MIT) +## License -Copyright (c) 2017-present, Jon Schlinkert. +[MIT][license] © [Titus Wormer][author] -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[build]: https://github.com/micromark/micromark/actions +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -pinia-plugin-persistedstate 3.2.0 -MIT -# `pinia-plugin-persistedstate` +[coverage]: https://codecov.io/github/micromark/micromark -> Pinia plugin to persist stores +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-subtokenize.svg -## 🚀 Quickstart +[downloads]: https://www.npmjs.com/package/micromark-util-subtokenize -1. Install with your favorite package manager: - - **pnpm** : `pnpm i pinia-plugin-persistedstate` - - npm : `npm i pinia-plugin-persistedstate` - - yarn : `yarn add pinia-plugin-persistedstate` +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-subtokenize -2. Add the plugin to pinia: -```ts -import { createPinia } from 'pinia' -import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' +[bundle-size]: https://bundlejs.com/?q=micromark-util-subtokenize -const pinia = createPinia() -pinia.use(piniaPluginPersistedstate) -``` +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -## 🔧 Configuration +[opencollective]: https://opencollective.com/unified -Usage and configuration informations can be found in [the documentation](https://prazdevs.github.io/pinia-plugin-persistedstate/guide/) +[npm]: https://docs.npmjs.com/cli/install +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -## 📝 License +[esmsh]: https://esm.sh -Copyright © 2022 [Sacha Bouillez](https://github.com/prazdevs). -This project is under [MIT](https://github.com/prazdevs/pinia-plugin-persistedstate/blob/main/LICENSE) license. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -pinia 2.1.7 -MIT -The MIT License (MIT) - -Copyright (c) 2019-present Eduardo San Martin Morote +[license]: https://github.com/micromark/micromark/blob/main/license -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[author]: https://wooorm.com -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -pkg-dir 4.2.0 -MIT -MIT License +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright (c) Sindre Sorhus (sindresorhus.com) +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[typescript]: https://www.typescriptlang.org -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[micromark]: https://github.com/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[api-subtokenize]: #subtokenizeevents -pkg-types 1.0.3 +micromark-util-subtokenize 2.0.0 MIT -MIT License - -Copyright (c) Pooya Parsa - Daniel Roe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +# micromark-util-subtokenize -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[micromark][] utility to tokenize subtokens. --------------------------------------------------------------------------------- +## Contents -Copyright Joyent, Inc. and other Node contributors. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`subtokenize(events)`](#subtokenizeevents) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: +## What is this? -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. +This package exposes a micromark internal that you probably don’t need. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. +## When should I use this? +This package might be useful when you are making your own micromark extensions. -pluralize 8.0.0 -MIT -The MIT License (MIT) +## Install -Copyright (c) 2013 Blake Embrey (hello@blakeembrey.com) +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +```sh +npm install micromark-util-subtokenize +``` -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +In Deno with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +```js +import {subtokenize} from 'https://esm.sh/micromark-util-subtokenize@1' +``` +In browsers with [`esm.sh`][esmsh]: -postcss-calc 9.0.1 -MIT -The MIT License (MIT) +```html + +``` -Copyright (c) 2014 Maxime Thirouin +## Use -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +```js +import {subtokenize} from 'micromark-util-subtokenize' -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +/** + * Content is transparent: it’s parsed right now. That way, definitions are also + * parsed right now: before text in paragraphs (specifically, media) are parsed. + * + * @type {Resolver} + */ +function resolveContent(events) { + subtokenize(events) + return events +} +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## API +This module exports the identifiers [`subtokenize`][api-subtokenize]. +There is no default export. -postcss-colormin 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +### `subtokenize(events)` -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +Tokenize subcontent. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +###### Parameters -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +* `events` (`Array`) + — list of events +###### Returns -postcss-convert-values 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +Whether subtokens were found (`boolean`). -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## Types -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +This package is fully typed with [TypeScript][]. +It exports no additional types. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Compatibility +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -postcss-discard-comments 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-subtokenize@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## Security -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Contribute +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -postcss-discard-duplicates 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## License -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[MIT][license] © [Titus Wormer][author] -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -postcss-discard-empty 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[build]: https://github.com/micromark/micromark/actions -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[coverage]: https://codecov.io/github/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-subtokenize.svg +[downloads]: https://www.npmjs.com/package/micromark-util-subtokenize -postcss-discard-overridden 6.0.0 -MIT -The MIT License (MIT) +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-subtokenize -Copyright 2016 Justineo +[bundle-size]: https://bundlejs.com/?q=micromark-util-subtokenize -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[opencollective]: https://opencollective.com/unified +[npm]: https://docs.npmjs.com/cli/install -postcss-merge-longhand 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[esmsh]: https://esm.sh -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[chat]: https://github.com/micromark/micromark/discussions +[license]: https://github.com/micromark/micromark/blob/main/license -postcss-merge-rules 6.0.1 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[author]: https://wooorm.com -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[health]: https://github.com/micromark/.github -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md +[support]: https://github.com/micromark/.github/blob/main/support.md -postcss-minify-font-values 6.0.0 -MIT -Copyright (c) Bogdan Chadkin +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[typescript]: https://www.typescriptlang.org -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[micromark]: https://github.com/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[api-subtokenize]: #subtokenizeevents -postcss-minify-gradients 6.0.0 +micromark-util-symbol 1.1.0 MIT -Copyright (c) Ben Briggs (http://beneb.info) +# micromark-util-symbol -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[micromark][] utility with symbols. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Contents +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -postcss-minify-params 6.0.0 -MIT -The MIT License (MIT) +## What is this? -Copyright 2015 Bogdan Chadkin +This package exposes constants used throughout the micromark ecosystem. -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +## When should I use this? -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +This package is useful when you are making your own micromark extensions. +It’s useful to reference these constants by name instead of value while +developing. +[`micromark-build`][micromark-build] compiles them away for production code. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## Install +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -postcss-minify-selectors 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +```sh +npm install micromark-util-symbol +``` -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +In Deno with [`esm.sh`][esmsh]: -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +```js +import {codes} from 'https://esm.sh/micromark-util-symbol/codes@1' +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +In browsers with [`esm.sh`][esmsh]: +```html + +``` -postcss-normalize-charset 6.0.0 -MIT -The MIT License (MIT) +## Use -Copyright 2015 Bogdan Chadkin +```js +import {codes} from 'micromark-util-symbol/codes' +import {constants} from 'micromark-util-symbol/constants' +import {types} from 'micromark-util-symbol/types' +import {values} from 'micromark-util-symbol/values' -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +console.log(codes.atSign) // 64 +console.log(constants.characterReferenceNamedSizeMax) // 31 +console.log(types.definitionDestinationRaw) // 'definitionDestinationRaw' +console.log(values.atSign) // '@' +``` -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## API -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This package has four entries in its export map: `micromark-util-symbol/codes`, +`micromark-util-symbol/constants`, `micromark-util-symbol/types`, +`micromark-util-symbol/values`. +Each module exports an identifier with the same name (for example, +`micromark-util-symbol/codes` has `codes`), which is an object mapping strings +to other values. -postcss-normalize-display-values 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +See the code for the exposed data. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## Types -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +This package is fully typed with [TypeScript][]. +It exports no additional types. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Compatibility +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. -postcss-normalize-positions 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +This package works with `micromark` version 3+. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## Security -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Contribute +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -postcss-normalize-repeat-style 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## License -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[MIT][license] © [Titus Wormer][author] -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. + +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -postcss-normalize-string 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[build]: https://github.com/micromark/micromark/actions -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[coverage]: https://codecov.io/github/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-symbol.svg +[downloads]: https://www.npmjs.com/package/micromark-util-symbol -postcss-normalize-timing-functions 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-symbol -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[bundle-size]: https://bundlejs.com/?q=micromark-util-symbol -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[backers-badge]: https://opencollective.com/unified/backers/badge.svg +[opencollective]: https://opencollective.com/unified -postcss-normalize-unicode 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[npm]: https://docs.npmjs.com/cli/install -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[esmsh]: https://esm.sh -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -postcss-normalize-url 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[license]: https://github.com/micromark/micromark/blob/main/license -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[author]: https://wooorm.com -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -postcss-normalize-whitespace 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +[support]: https://github.com/micromark/.github/blob/main/support.md -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[typescript]: https://www.typescriptlang.org -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[micromark]: https://github.com/micromark/micromark + +[micromark-build]: https://github.com/micromark/micromark/tree/main/packages/micromark-build -postcss-ordered-values 6.0.0 +micromark-util-symbol 2.0.0 MIT -Copyright (c) Ben Briggs (http://beneb.info) +# micromark-util-symbol -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[micromark][] utility with symbols. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +## Contents +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -postcss-reduce-initial 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +## What is this? -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +This package exposes constants used throughout the micromark ecosystem. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## When should I use this? -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +This package is useful when you are making your own micromark extensions. +It’s useful to reference these constants by name instead of value while +developing. +[`micromark-build`][micromark-build] compiles them away for production code. +## Install -postcss-reduce-transforms 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +```sh +npm install micromark-util-symbol +``` -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +In Deno with [`esm.sh`][esmsh]: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +```js +import * as symbol from 'https://esm.sh/micromark-util-symbol@1' +``` +In browsers with [`esm.sh`][esmsh]: -postcss-selector-parser 6.0.13 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +```html + +``` -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +## Use -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +```js +import {codes, constants, types, values} from 'micromark-util-symbol' -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +console.log(codes.atSign) // 64 +console.log(constants.characterReferenceNamedSizeMax) // 31 +console.log(types.definitionDestinationRaw) // 'definitionDestinationRaw' +console.log(values.atSign) // '@' +``` +## API -postcss-svgo 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +This package exports the identifiers `codes`, `constants`, `types`, and +`values`. +There is no default export. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +Each identifier is an object mapping strings to values. +See the code for the exposed data. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Types -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +This package is fully typed with [TypeScript][]. +It exports no additional types. +## Compatibility -postcss-unique-selectors 6.0.0 -MIT -Copyright (c) Ben Briggs (http://beneb.info) +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-symbol@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## Security -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. +## Contribute -postcss-value-parser 4.2.0 -MIT -Copyright (c) Bogdan Chadkin +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +## License -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[MIT][license] © [Titus Wormer][author] + -postcss 8.4.31 -MIT -The MIT License (MIT) +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -Copyright 2013 Andrey Sitnik +[build]: https://github.com/micromark/micromark/actions -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[coverage]: https://codecov.io/github/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-symbol.svg +[downloads]: https://www.npmjs.com/package/micromark-util-symbol -prelude-ls 1.2.1 -MIT -Copyright (c) George Zahariev +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-symbol -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: +[bundle-size]: https://bundlejs.com/?q=micromark-util-symbol -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -pretty-bytes 6.1.1 -MIT -MIT License +[opencollective]: https://opencollective.com/unified -Copyright (c) Sindre Sorhus (https://sindresorhus.com) +[npm]: https://docs.npmjs.com/cli/install -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[esmsh]: https://esm.sh -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[chat]: https://github.com/micromark/micromark/discussions -pretty-format 29.7.0 -MIT -MIT License +[license]: https://github.com/micromark/micromark/blob/main/license -Copyright (c) Meta Platforms, Inc. and affiliates. +[author]: https://wooorm.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[health]: https://github.com/micromark/.github -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md +[support]: https://github.com/micromark/.github/blob/main/support.md -proc-log 3.0.0 -ISC -The ISC License +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Copyright (c) GitHub, Inc. +[typescript]: https://www.typescriptlang.org -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[micromark]: https://github.com/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[micromark-build]: https://github.com/micromark/micromark/tree/main/packages/micromark-build -process-nextick-args 2.0.1 +micromark-util-types 1.1.0 MIT -# Copyright (c) 2015 Calvin Metcalf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +# micromark-util-types -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.** +[micromark][] utility package with TypeScript types. +## Contents -promise-inflight 1.0.1 -ISC -Copyright (c) 2017, Rebecca Turner +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +## What is this? -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +This package exposes TypeScript types shared throughout the micromark +ecosystem. +## When should I use this? +This package is useful when you are making your own, typed, micromark +extensions. -promise-polyfill 8.3.0 -MIT -Copyright (c) 2014 Taylor Hakes -Copyright (c) 2014 Forbes Lindesay +## Install -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +In Node.js (version 16+), install with [npm][]: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +```sh +npm install micromark-util-types +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +In Deno with [`esm.sh`][esmsh]: -promise-retry 2.0.1 -MIT -Copyright (c) 2014 IndigoUnited +```js +import type {Point, /* … */} from 'https://esm.sh/micromark-util-types@1' +``` -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: +## Use -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +```js +/** + * @typedef {import('micromark-util-types').Point} Point + */ +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +## API +This module exports no identifiers. +There is no default export. -prompts 2.4.2 -MIT -MIT License +See [the code][code] for all about the exposed types. -Copyright (c) 2018 Terkel Gjervig Nielsen +## Types -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is just [TypeScript][] types. +It exports lots of different types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Projects maintained by the unified collective are compatible with all maintained +versions of Node.js. +As of now, that is Node.js 16+. +Our projects sometimes work with older versions, but this is not guaranteed. +This package work with `micromark` version 3+. -property-information 6.4.0 -MIT -(The MIT License) +## Security -Copyright (c) 2015 Titus Wormer +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +## Contribute -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. +## License -proto-list 1.2.4 -ISC -The ISC License +[MIT][license] © [Titus Wormer][author] -Copyright (c) Isaac Z. Schlueter and Contributors + -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[build]: https://github.com/micromark/micromark/actions +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg -protocols 2.0.1 -MIT -The MIT License (MIT) +[coverage]: https://codecov.io/github/micromark/micromark -Copyright (c) 2015-22 Ionică Bizău (https://ionicabizau.net) +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[downloads]: https://www.npmjs.com/package/micromark-util-encode -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +[bundle-size]: https://bundlejs.com/?q=micromark-util-encode +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -punycode 2.3.0 -MIT -Copyright Mathias Bynens +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +[opencollective]: https://opencollective.com/unified -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +[npm]: https://docs.npmjs.com/cli/install -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[esmsh]: https://esm.sh +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -queue-microtask 1.2.3 -MIT -The MIT License (MIT) +[chat]: https://github.com/micromark/micromark/discussions -Copyright (c) Feross Aboukhadijeh +[license]: https://github.com/micromark/micromark/blob/main/license -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +[author]: https://wooorm.com -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +[health]: https://github.com/micromark/.github -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[securitymd]: https://github.com/micromark/.github/blob/main/security.md +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -queue-tick 1.0.1 -MIT -The MIT License (MIT) +[support]: https://github.com/micromark/.github/blob/main/support.md -Copyright (c) 2021 Mathias Buus +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[typescript]: https://www.typescriptlang.org -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +[micromark]: https://github.com/micromark/micromark -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +[code]: https://github.com/micromark/micromark/blob/main/packages/micromark-util-types/index.d.ts -radix3 1.1.0 +micromark-util-types 2.0.0 MIT -MIT License +# micromark-util-types -Copyright (c) Pooya Parsa +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +[micromark][] utility package with TypeScript types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Contents -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [License](#license) +## What is this? -randombytes 2.1.0 -MIT -MIT License +This package exposes TypeScript types shared throughout the micromark +ecosystem. -Copyright (c) 2017 crypto-browserify +## When should I use this? -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is useful when you are making your own, typed, micromark +extensions. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Install -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +In Node.js (version 16+), install with [npm][]: +```sh +npm install micromark-util-types +``` -range-parser 1.2.1 -MIT -(The MIT License) +In Deno with [`esm.sh`][esmsh]: -Copyright (c) 2012-2014 TJ Holowaychuk -Copyright (c) 2015-2016 Douglas Christopher Wilson +## Types -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is just [TypeScript][] types. +It exports lots of different types. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +## Compatibility -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +Projects maintained by the unified collective are compatible with maintained +versions of Node.js. +When we cut a new major release, we drop support for unmaintained versions of +Node. +This means we try to keep the current release line, +`micromark-util-types@^2`, compatible with Node.js 16. +This package works with `micromark@^3`. -react-is 18.2.0 -MIT -MIT License +## Security -Copyright (c) Facebook, Inc. and its affiliates. +This package is safe. +See [`security.md`][securitymd] in [`micromark/.github`][health] for how to +submit a security report. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +## Contribute -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +See [`contributing.md`][contributing] in [`micromark/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +This project has a [code of conduct][coc]. +By interacting with this repository, organisation, or community you agree to +abide by its terms. +## License -read-installed-packages 2.0.1 -ISC -The ISC License +[MIT][license] © [Titus Wormer][author] -Copyright (c) Isaac Z. Schlueter, Dmitry Semigradsky + -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. +[build]: https://github.com/micromark/micromark/actions +[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg +[coverage]: https://codecov.io/github/micromark/micromark -read-package-json-fast 3.0.2 -ISC -The ISC License +[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-encode.svg -Copyright (c) npm, Inc. and Contributors +[downloads]: https://www.npmjs.com/package/micromark-util-encode -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[bundle-size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-encode -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +[bundle-size]: https://bundlejs.com/?q=micromark-util-encode +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg -read-package-json 6.0.4 -ISC -The ISC License +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -Copyright (c) Isaac Z. Schlueter +[opencollective]: https://opencollective.com/unified -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[npm]: https://docs.npmjs.com/cli/install -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. +[esmsh]: https://esm.sh +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -read-package-json 7.0.0 -ISC -The ISC License +[chat]: https://github.com/micromark/micromark/discussions -Copyright (c) Isaac Z. Schlueter +[license]: https://github.com/micromark/micromark/blob/main/license -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +[author]: https://wooorm.com -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. +[health]: https://github.com/micromark/.github +[securitymd]: https://github.com/micromark/.github/blob/main/security.md -read-pkg-up 7.0.1 -MIT -MIT License +[contributing]: https://github.com/micromark/.github/blob/main/contributing.md -Copyright (c) Sindre Sorhus (sindresorhus.com) +[support]: https://github.com/micromark/.github/blob/main/support.md -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +[typescript]: https://www.typescriptlang.org -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +[micromark]: https://github.com/micromark/micromark + +[code]: https://github.com/micromark/micromark/blob/main/packages/micromark-util-types/index.d.ts -read-pkg 5.2.0 +micromark 3.2.0 MIT -MIT License +# micromark -Copyright (c) Sindre Sorhus (sindresorhus.com) +[![Build][build-badge]][build] +[![Coverage][coverage-badge]][coverage] +[![Downloads][downloads-badge]][downloads] +[![Size][bundle-size-badge]][bundle-size] +[![Sponsors][sponsors-badge]][opencollective] +[![Backers][backers-badge]][opencollective] +[![Chat][chat-badge]][chat] -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +Markdown parser. -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> **Note**: this is the `micromark` package from the micromark monorepo. +> See the [monorepo readme][micromark] for more on the project. +> See this readme for how to use it. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +## Feature highlights + -readable-stream 2.3.8 -MIT -Node.js is licensed for use as follows: +* [x] **[compliant][commonmark]** (100% to CommonMark) +* [x] **[extensions][]** (100% [GFM][], 100% [MDX.js][mdxjs], [directives][], + [frontmatter][], [math][]) +* [x] **[safe][security]** (by default) +* [x] **[robust][test]** (±2k tests, 100% coverage, fuzz testing) +* [x] **[small][size-debug]** (smallest CM parser at ±15kb) -""" -Copyright Node.js contributors. All rights reserved. +## Contents -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +* [When should I use this?](#when-should-i-use-this) +* [What is this?](#what-is-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`micromark(value[, encoding][, options])`](#micromarkvalue-encoding-options) + * [`stream(options?)`](#streamoptions) + * [`Options`](#options) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Contribute](#contribute) +* [Sponsor](#sponsor) +* [License](#license) -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +## When should I use this? -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" + -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: +* If you *just* want to turn markdown into HTML (with maybe a few extensions) +* If you want to do *really complex things* with markdown -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +See [§ Comparison][comparison] for more info -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +## What is this? -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" + +`micromark` is an open source markdown parser written in JavaScript. +It’s implemented as a state machine that emits concrete tokens, so that every +byte is accounted for, with positional info. +It then compiles those tokens directly to HTML, but other tools can take the +data and for example build an AST which is easier to work with +([`mdast-util-to-markdown`][mdast-util-to-markdown]). -readable-stream 3.6.2 -MIT -Node.js is licensed for use as follows: +While most markdown parsers work towards compliancy with CommonMark (or GFM), +this project goes further by following how the reference parsers (`cmark`, +`cmark-gfm`) work, which is confirmed with thousands of extra tests. -""" -Copyright Node.js contributors. All rights reserved. +Other than CommonMark and GFM, micromark also supports common extensions to +markdown such as MDX, math, and frontmatter. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +These npm packages have a sibling project in Rust: +[`markdown-rs`][markdown-rs]. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +* to learn markdown, see this [cheatsheet and tutorial][cheat] +* for more about us, see [`unifiedjs.com`][site] +* for updates, see [Twitter][] +* for questions, see [Discussions][chat] +* to help, see [contribute][] and [sponsor][] below -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" +## Install -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: + -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This package is [ESM only][esm]. +In Node.js (version 16+), install with [npm][]: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +```sh +npm install micromark +``` -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" +In Deno with [`esm.sh`][esmsh]: +```js +import {micromark} from 'https://esm.sh/micromark@3' +``` -readdir-glob 1.1.3 -Apache-2.0 - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ +In browsers with [`esm.sh`][esmsh]: - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +```html + +``` - 1. Definitions. +## Use - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. + - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. +Typical use (buffering): - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. +```js +import {micromark} from 'micromark' - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. +console.log(micromark('## Hello, *world*!')) +``` - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. +Yields: - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. +```html +

Hello, world!

+``` - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). +You can pass extensions (in this case [`micromark-extension-gfm`][gfm]): - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. +```js +import {micromark} from 'micromark' +import {gfm, gfmHtml} from 'micromark-extension-gfm' - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." +const value = '* [x] contact@example.com ~~strikethrough~~' - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. +const result = micromark(value, { + extensions: [gfm()], + htmlExtensions: [gfmHtml()] +}) - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. +console.log(result) +``` - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. +Yields: - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: +```html + +``` - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and +Streaming interface: - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and +```js +import {createReadStream} from 'node:fs' +import {stream} from 'micromark/stream' - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and +createReadStream('example.md') + .on('error', handleError) + .pipe(stream()) + .pipe(process.stdout) - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. +function handleError(error) { + // Handle your error here! + throw error +} +``` - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. +## API - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. +`micromark` core has two entries in its export map: `micromark` and +`micromark/stream`. - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. +`micromark` exports the identifier [`micromark`][api-micromark]. +`micromark/stream` exports the identifier [`stream`][api-stream]. +There are no default exports. - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. +The export map supports the [`development` condition][development]. +Run `node --conditions development module.js` to get instrumented dev code. +Without this condition, production code is loaded. +See [§ Size & debug][size-debug] for more info. - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. +### `micromark(value[, encoding][, options])` - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. +Compile markdown to HTML. - END OF TERMS AND CONDITIONS +###### Parameters - APPENDIX: How to apply the Apache License to your work. +* `value` (`string` or [`Buffer`][buffer]) + — markdown to parse +* `encoding` (`string`, default: `'utf8'`) + — [character encoding][encoding] to understand `value` as when it’s a + `Buffer` +* `options` ([`Options`][api-options], optional) + — configuration - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. +###### Returns - Copyright 2020 Yann Armelin +Compiled HTML (`string`). - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +### `stream(options?)` - http://www.apache.org/licenses/LICENSE-2.0 +Create a duplex (readable and writable) stream. - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Some of the work to parse markdown can be done streaming, but in the +end buffering is required. -readdirp 3.6.0 -MIT -MIT License +micromark does not handle errors for you, so you must handle errors on whatever +streams you pipe into it. +As markdown does not know errors, `micromark` itself does not emit errors. -Copyright (c) 2012-2019 Thorsten Lorenz, Paul Miller (https://paulmillr.com) +###### Parameters -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +* `options` ([`Options`][api-options], optional) + — configuration -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -realistic-structured-clone 3.0.0 -Apache-2.0 -# Realistic Structured Clone ![Build Status](https://github.com/dumbmatter/realistic-structured-clone/actions/workflows/test.yml/badge.svg) - -**You might not need this anymore!** A native `structuredClone` function is available in many recent environments, such as Node v17 and Firefox v94. [Check if your target environment has `structuredClone` built in.](https://developer.mozilla.org/en-US/docs/Web/API/structuredClone) If it does, use that. - -This is a pure JS implementation of the [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm) (or at least something pretty close to that). - -Why do you want this? Well, you probably don't. If your goal is to just clone a JS object, you're better off with [lodash's _.cloneDeep](https://lodash.com/docs#cloneDeep) or [the popular `clone` module on npm](https://www.npmjs.com/package/clone). - -Let's try again... why do you want this? If you are making an implementation of an API that explicitly uses the structured clone algorithm (such as [IndexedDB](https://github.com/dumbmatter/fakeIndexedDB)), then you want something that handles quirks and edge cases exactly like the structured clone algorithm. That's what `realistic-structured-clone` is for. It's not totally there (see below) but it's a decent start. - -## Use - -[Install through npm:](https://www.npmjs.com/package/realistic-structured-clone) - - $ npm install realistic-structured-clone - -Then use it: - - // First load the module - // (Use Browserify or something if you're targeting the web) - var structuredClone = require('realistic-structured-clone'); - - // Clone a variable (will throw a DataCloneError for invalid input) - var clonedX = structuredClone(x); - -## Alternatives - -If you look around, you'll notice various modules calling themselves implementations of the structured clone algorithm, such as [the `structured-clone` package on npm](https://www.npmjs.com/package/structured-clone). But that package, like all the others I've seen, doesn't actually seem to be an attempt at implementing the structured clone algorithm. It's just some arbitrary type of clone. As I wrote above, this distinction only matters if you really care about the nuances of the structured clone algorithm, which you probably don't. - -If you're working in the browser, you can do [something like this](https://twitter.com/TedMielczarek/status/591315580277391360) to do a real structured clone: - - function clone(x) { - return new Promise(function (resolve, reject) { - window.addEventListener('message', function(e) { - resolve(e.data); - }); - window.postMessage(x, "*"); - }); - } - var x = {a:[1,2,3], b:{c:1}}; - clone(x).then(function(cloned) { - console.log("x: %s", JSON.stringify(x)); - console.log("cloned: %s", JSON.stringify(cloned)); - console.log("x == cloned %s", x == cloned); - console.log("x === cloned %s", x === cloned); - }); - -However, that won't help you in Node.js. It's also asynchronous, which could be a problem. `realistic-structured-clone` is synchronous and works everywhere. - -## Current State - -As of version 2.0, it should be pretty damn close to the spec! However it is now just a light wrapper around the [Typeson](https://github.com/dfahlander/typeson) structured-cloning-throwing preset. - -## License - -Apache 2.0 - - -redis-errors 1.2.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Ruben Bridgewater - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -redis-parser 3.0.0 -MIT -The MIT License (MIT) - -Copyright (c) 2015 NodeRedis - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -regenerator-runtime 0.14.0 -MIT -MIT License - -Copyright (c) 2014-present, Facebook, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -regexp-tree 0.1.27 -MIT -MIT License - -Copyright (c) 2017 Dmitry Soshnikov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -regexp.prototype.flags 1.5.1 -MIT -The MIT License (MIT) - -Copyright (C) 2014 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - - -regexpp 3.2.0 -MIT -MIT License - -Copyright (c) 2018 Toru Nagashima - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -rehype-parse 8.0.5 -MIT -# rehype-parse - -[![Build][build-badge]][build] -[![Coverage][coverage-badge]][coverage] -[![Downloads][downloads-badge]][downloads] -[![Size][size-badge]][size] -[![Sponsors][sponsors-badge]][collective] -[![Backers][backers-badge]][collective] -[![Chat][chat-badge]][chat] - -**[rehype][]** plugin to add support for parsing HTML input. - -## Contents - -* [What is this?](#what-is-this) -* [When should I use this?](#when-should-i-use-this) -* [Install](#install) -* [Use](#use) -* [API](#api) - * [`unified().use(rehypeParse[, options])`](#unifieduserehypeparse-options) -* [Examples](#examples) - * [Example: fragment versus document](#example-fragment-versus-document) - * [Example: whitespace around and inside ``](#example-whitespace-around-and-inside-html) - * [Example: parse errors](#example-parse-errors) -* [Syntax](#syntax) -* [Syntax tree](#syntax-tree) -* [Types](#types) -* [Compatibility](#compatibility) -* [Security](#security) -* [Contribute](#contribute) -* [Sponsor](#sponsor) -* [License](#license) - -## What is this? - -This package is a [unified][] ([rehype][]) plugin that defines how to take HTML -as input and turn it into a syntax tree. -When it’s used, HTML can be parsed and other rehype plugins can be used after -it. - -See [the monorepo readme][rehype] for info on what the rehype ecosystem is. - -## When should I use this? - -This plugin adds support to unified for parsing HTML. -You can alternatively use [`rehype`][rehype-core] instead, which combines -unified, this plugin, and [`rehype-stringify`][rehype-stringify]. - -When you’re in a browser, trust your content, don’t need positional info, and -value a smaller bundle size, you can use [`rehype-dom-parse`][rehype-dom-parse] -instead. - -This plugin is built on [`parse5`][parse5] and -[`hast-util-from-parse5`][hast-util-from-parse5], which deal with HTML-compliant -tokenizing, parsing, and creating nodes. -rehype focusses on making it easier to transform content by abstracting such -internals away. - -## Install - -This package is [ESM only][esm]. -In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]: - -```sh -npm install rehype-parse -``` - -In Deno with [`esm.sh`][esmsh]: - -```js -import rehypeParse from 'https://esm.sh/rehype-parse@8' -``` - -In browsers with [`esm.sh`][esmsh]: - -```html - -``` - -## Use - -Say we have the following module `example.js`: - -```js -import {unified} from 'unified' -import rehypeParse from 'rehype-parse' -import rehypeRemark from 'rehype-remark' -import remarkStringify from 'remark-stringify' - -main() - -async function main() { - const file = await unified() - .use(rehypeParse) - .use(rehypeRemark) - .use(remarkStringify) - .process('

Hello, world!

') - - console.log(String(file)) -} -``` - -…running that with `node example.js` yields: - -```markdown -# Hello, world! -``` - -## API - -This package exports no identifiers. -The default export is `rehypeParse`. - -### `unified().use(rehypeParse[, options])` - -Add support for parsing HTML input. - -##### `options` - -Configuration (optional). - -###### `options.fragment` - -Specify whether to parse as a fragment (`boolean`, default: `false`). -The default is to expect a whole document. -In document mode, unopened `html`, `head`, and `body` elements are opened. - -###### `options.space` - -Which space the document is in (`'svg'` or `'html'`, default: `'html'`). - -When an `` element is found in the HTML space, `rehype-parse` already -automatically switches to and from the SVG space when entering and exiting it. - -> 👉 **Note**: rehype is not an XML parser. -> It supports SVG as embedded in HTML. -> It does not support the features available in XML. -> Passing SVG files might break but fragments of modern SVG should be fine. - -> 👉 **Note**: make sure to set `fragment: true` if `space: 'svg'`. - -###### `options.emitParseErrors` - -Emit [HTML parse errors][parse-errors] as warning messages -(`boolean`, default: `false`). - -Specific rules can be turned off by setting their IDs in `options` to `false` -(or `0`). -The default, when `emitParseErrors: true`, is `true` (or `1`), and means that -rules emit as warnings. -Rules can also be configured with `2`, to turn them into fatal errors. - -The list of parse errors: - - - -* `abandonedHeadElementChild` — unexpected metadata element after head ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/abandoned-head-element-child/index.html)) -* [`abruptClosingOfEmptyComment`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-closing-of-empty-comment) — unexpected abruptly closed empty comment ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/abrupt-closing-of-empty-comment/index.html)) -* [`abruptDoctypePublicIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-doctype-public-identifier) — unexpected abruptly closed public identifier ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/abrupt-doctype-public-identifier/index.html)) -* [`abruptDoctypeSystemIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-doctype-system-identifier) — unexpected abruptly closed system identifier ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/abrupt-doctype-system-identifier/index.html)) -* [`absenceOfDigitsInNumericCharacterReference`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-absence-of-digits-in-numeric-character-reference) — unexpected non-digit at start of numeric character reference ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/absence-of-digits-in-numeric-character-reference/index.html)) -* [`cdataInHtmlContent`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-cdata-in-html-content) — unexpected CDATA section in HTML ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/cdata-in-html-content/index.html)) -* [`characterReferenceOutsideUnicodeRange`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-character-reference-outside-unicode-range) — unexpected too big numeric character reference ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/character-reference-outside-unicode-range/index.html)) -* `closingOfElementWithOpenChildElements` — unexpected closing tag with open child elements ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/closing-of-element-with-open-child-elements/index.html)) -* [`controlCharacterInInputStream`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-control-character-in-input-stream) — unexpected control character ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/control-character-in-input-stream/index.html)) -* [`controlCharacterReference`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-control-character-reference) — unexpected control character reference ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/control-character-reference/index.html)) -* `disallowedContentInNoscriptInHead` — disallowed content inside `` ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/disallowed-content-in-noscript-in-head/index.html)) -* [`duplicateAttribute`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-duplicate-attribute) — unexpected duplicate attribute ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/duplicate-attribute/index.html)) -* [`endTagWithAttributes`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-end-tag-with-attributes) — unexpected attribute on closing tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/end-tag-with-attributes/index.html)) -* [`endTagWithTrailingSolidus`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-end-tag-with-trailing-solidus) — unexpected slash at end of closing tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/end-tag-with-trailing-solidus/index.html)) -* `endTagWithoutMatchingOpenElement` — unexpected unopened end tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/end-tag-without-matching-open-element/index.html)) -* [`eofBeforeTagName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-before-tag-name) — unexpected end of file ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-before-tag-name/index.html)) -* [`eofInCdata`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-in-cdata) — unexpected end of file in CDATA ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-cdata/index.html)) -* [`eofInComment`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-in-comment) — unexpected end of file in comment ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-comment/index.html)) -* [`eofInDoctype`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-in-doctype) — unexpected end of file in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-doctype/index.html)) -* `eofInElementThatCanContainOnlyText` — unexpected end of file in element that can only contain text ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-element-that-can-contain-only-text/index.html)) -* [`eofInScriptHtmlCommentLikeText`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-in-script-html-comment-like-text) — unexpected end of file in comment inside script ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-script-html-comment-like-text/index.html)) -* [`eofInTag`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-eof-in-tag) — unexpected end of file in tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/eof-in-tag/index.html)) -* [`incorrectlyClosedComment`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-incorrectly-closed-comment) — incorrectly closed comment ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/incorrectly-closed-comment/index.html)) -* [`incorrectlyOpenedComment`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-incorrectly-opened-comment) — incorrectly opened comment ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/incorrectly-opened-comment/index.html)) -* [`invalidCharacterSequenceAfterDoctypeName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-invalid-character-sequence-after-doctype-name) — invalid sequence after doctype name ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/invalid-character-sequence-after-doctype-name/index.html)) -* [`invalidFirstCharacterOfTagName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-invalid-first-character-of-tag-name) — invalid first character in tag name ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/invalid-first-character-of-tag-name/index.html)) -* `misplacedDoctype` — misplaced doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/misplaced-doctype/index.html)) -* `misplacedStartTagForHeadElement` — misplaced `` start tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/misplaced-start-tag-for-head-element/index.html)) -* [`missingAttributeValue`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-attribute-value) — missing attribute value ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-attribute-value/index.html)) -* `missingDoctype` — missing doctype before other content ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-doctype/index.html)) -* [`missingDoctypeName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-doctype-name) — missing doctype name ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-doctype-name/index.html)) -* [`missingDoctypePublicIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-doctype-public-identifier) — missing public identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-doctype-public-identifier/index.html)) -* [`missingDoctypeSystemIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-doctype-system-identifier) — missing system identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-doctype-system-identifier/index.html)) -* [`missingEndTagName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-end-tag-name) — missing name in end tag ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-end-tag-name/index.html)) -* [`missingQuoteBeforeDoctypePublicIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-quote-before-doctype-public-identifier) — missing quote before public identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-quote-before-doctype-public-identifier/index.html)) -* [`missingQuoteBeforeDoctypeSystemIdentifier`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-quote-before-doctype-system-identifier) — missing quote before system identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-quote-before-doctype-system-identifier/index.html)) -* [`missingSemicolonAfterCharacterReference`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-semicolon-after-character-reference) — missing semicolon after character reference ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-semicolon-after-character-reference/index.html)) -* [`missingWhitespaceAfterDoctypePublicKeyword`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-after-doctype-public-keyword) — missing whitespace after public identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-whitespace-after-doctype-public-keyword/index.html)) -* [`missingWhitespaceAfterDoctypeSystemKeyword`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-after-doctype-system-keyword) — missing whitespace after system identifier in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-whitespace-after-doctype-system-keyword/index.html)) -* [`missingWhitespaceBeforeDoctypeName`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-before-doctype-name) — missing whitespace before doctype name ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-whitespace-before-doctype-name/index.html)) -* [`missingWhitespaceBetweenAttributes`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-between-attributes) — missing whitespace between attributes ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-whitespace-between-attributes/index.html)) -* [`missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-between-doctype-public-and-system-identifiers) — missing whitespace between public and system identifiers in doctype ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/missing-whitespace-between-doctype-public-and-system-identifiers/index.html)) -* [`nestedComment`](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-nested-comment) — unexpected nested comment ([example](https://github.com/rehypejs/rehype/blob/main/test/parse-error/nested-comment/index.html)) -* `nestedNoscriptInHead` — unexpected nested `