diff --git a/README.md b/README.md index 339ee7a..43a68f7 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,7 @@ md.table({ ### `initMarkdownItParser(options)` Create parser with [markdown-it](https://github.com/markdown-it/markdown-it). + **WARNING**: The returned tree structure is unstable. **Example:** @@ -222,6 +223,7 @@ const { tree } = parser.parse("# Hello, *world*!"); ### `initMd4wParser(opts)` Create parser with [md4w](https://github.com/ije/md4w). + **WARNING**: The returned tree structure is unstable. **Example:** @@ -235,6 +237,7 @@ const { tree } = parser.parse("# Hello, *world*!"); ### `initMdAstParser(opts)` Create parser with [mdast-util-from-markdown](https://github.com/syntax-tree/mdast-util-from-markdown). + **WARNING**: The returned tree structure is unstable. **Example:** diff --git a/package.json b/package.json index 9f6a25b..3426df5 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,14 @@ "test:types": "tsc --noEmit --skipLibCheck" }, "dependencies": { - "md4w": "^0.2.2" + "md4w": "^0.2.4" }, "devDependencies": { "@types/markdown-it": "^13.0.7", "@types/mdast": "^4.0.3", - "@types/node": "^20.11.20", + "@types/node": "^20.11.24", "@vitest/coverage-v8": "^1.3.1", - "automd": "^0.3.5", + "automd": "^0.3.6", "changelogen": "^0.5.5", "esbuild": "^0.20.1", "eslint": "^8.57.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c235134..0e967c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: md4w: - specifier: ^0.2.2 - version: 0.2.2 + specifier: ^0.2.4 + version: 0.2.4 devDependencies: '@types/markdown-it': @@ -17,14 +17,14 @@ devDependencies: specifier: ^4.0.3 version: 4.0.3 '@types/node': - specifier: ^20.11.20 - version: 20.11.20 + specifier: ^20.11.24 + version: 20.11.24 '@vitest/coverage-v8': specifier: ^1.3.1 version: 1.3.1(vitest@1.3.1) automd: - specifier: ^0.3.5 - version: 0.3.5 + specifier: ^0.3.6 + version: 0.3.6 changelogen: specifier: ^0.5.5 version: 0.5.5 @@ -75,7 +75,7 @@ devDependencies: version: 4.3.1(typescript@5.3.3) vitest: specifier: ^1.3.1 - version: 1.3.1(@types/node@20.11.20) + version: 1.3.1(@types/node@20.11.24) packages: @@ -1221,8 +1221,8 @@ packages: resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} dev: true - /@types/node@20.11.20: - resolution: {integrity: sha512-7/rR21OS+fq8IyHTgtLkDK949uzsa6n8BkziAKtPVpugIkO6D+/ooXMvzXxDnZrmtXVfjb1bKQafYpb8s89LOg==} + /@types/node@20.11.24: + resolution: {integrity: sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==} dependencies: undici-types: 5.26.5 dev: true @@ -1395,7 +1395,7 @@ packages: std-env: 3.7.0 test-exclude: 6.0.0 v8-to-istanbul: 9.2.0 - vitest: 1.3.1(@types/node@20.11.20) + vitest: 1.3.1(@types/node@20.11.24) transitivePeerDependencies: - supports-color dev: true @@ -1588,8 +1588,8 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /automd@0.3.5: - resolution: {integrity: sha512-JScZoTTu8Skf49zqFfRUJVShGfiAWDMAi7FtXyLWSo2t+bBe+zZjK+lZbYhWoBcFwH8m0oJSKT6N1SndglUJ8A==} + /automd@0.3.6: + resolution: {integrity: sha512-6FmbZ6vTxFNohdU8ELwUUAee9u+ev8UNFk22A265P7g/IDviZthlWc4PTRgk1IlDJTXS1KHeMpl/PmuBgBOa+w==} hasBin: true dependencies: '@parcel/watcher': 2.4.1 @@ -1601,10 +1601,11 @@ packages: didyoumean2: 6.0.1 globby: 14.0.1 magic-string: 0.30.7 + mdbox: 0.1.0 mlly: 1.6.1 ofetch: 1.3.3 - omark: 0.1.0 pathe: 1.1.2 + perfect-debounce: 1.0.0 pkg-types: 1.0.3 scule: 1.3.0 untyped: 1.4.2 @@ -3693,9 +3694,8 @@ packages: resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==} dev: true - /md4w@0.2.2: - resolution: {integrity: sha512-dJwbVIueCp4HgI9Jg4I9pDVLiig1lAVXYqVmTrIVsobh3b50EtgQrXmFEzzRRR6HaK6xVqB/bd3Ac/Nt2kdwPA==} - dev: false + /md4w@0.2.4: + resolution: {integrity: sha512-pqycPBtk1FfBrVkrMFkGF4BH9YzZCpqwy4zUv2wCtX+cfaf7z96sQk7GX1fGZZStdkr8dUbkwQu+0z/0nvQzow==} /mdast-util-find-and-replace@3.0.1: resolution: {integrity: sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA==} @@ -3820,6 +3820,12 @@ packages: '@types/mdast': 4.0.3 dev: true + /mdbox@0.1.0: + resolution: {integrity: sha512-eQA+6vf5XM4LqdfLsfPMxqUBSU8AMzSCSFbojWLXSDL2jZeO+xgHhxTggrG2jfGPAyyIWIukj6SuoFBd9a7XZw==} + dependencies: + md4w: 0.2.4 + dev: true + /mdn-data@2.0.28: resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==} dev: true @@ -4344,10 +4350,6 @@ packages: resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==} dev: true - /omark@0.1.0: - resolution: {integrity: sha512-l+7hOfsjru88QuW7E937KH7BSz99NownkNTGigi+e4JzeSSCosMp2v3eVW1wdmgm99pFbzaUVg1kiT2V0QvvtQ==} - dev: true - /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: @@ -5626,7 +5628,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /vite-node@1.3.1(@types/node@20.11.20): + /vite-node@1.3.1(@types/node@20.11.24): resolution: {integrity: sha512-azbRrqRxlWTJEVbzInZCTchx0X69M/XPTCz4H+TLvlTcR/xH/3hkRqhOakT41fMJCMzXTu4UvegkZiEoJAWvng==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -5635,7 +5637,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.4(@types/node@20.11.20) + vite: 5.1.4(@types/node@20.11.24) transitivePeerDependencies: - '@types/node' - less @@ -5663,7 +5665,7 @@ packages: - typescript dev: true - /vite@5.1.4(@types/node@20.11.20): + /vite@5.1.4(@types/node@20.11.24): resolution: {integrity: sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -5691,7 +5693,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.11.20 + '@types/node': 20.11.24 esbuild: 0.19.12 postcss: 8.4.35 rollup: 4.12.0 @@ -5699,7 +5701,7 @@ packages: fsevents: 2.3.3 dev: true - /vitest@1.3.1(@types/node@20.11.20): + /vitest@1.3.1(@types/node@20.11.24): resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -5724,7 +5726,7 @@ packages: jsdom: optional: true dependencies: - '@types/node': 20.11.20 + '@types/node': 20.11.24 '@vitest/expect': 1.3.1 '@vitest/runner': 1.3.1 '@vitest/snapshot': 1.3.1 @@ -5742,8 +5744,8 @@ packages: strip-literal: 2.0.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.4(@types/node@20.11.20) - vite-node: 1.3.1(@types/node@20.11.20) + vite: 5.1.4(@types/node@20.11.24) + vite-node: 1.3.1(@types/node@20.11.24) why-is-node-running: 2.2.2 transitivePeerDependencies: - less