diff --git a/index.js b/index.js index 2a29ea9..abcd30b 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,6 @@ * @typedef {import('./lib/index.js').Processor} Processor */ -export {defaultHandlers, all, one} from 'mdast-util-to-hast' +export {defaultHandlers} from 'mdast-util-to-hast' export {default} from './lib/index.js' diff --git a/package.json b/package.json index faaabff..5005b1c 100644 --- a/package.json +++ b/package.json @@ -36,20 +36,20 @@ "index.js" ], "dependencies": { - "@types/hast": "^2.0.0", - "@types/mdast": "^3.0.0", - "mdast-util-to-hast": "^12.1.0", - "unified": "^10.0.0" + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0" }, "devDependencies": { "@types/node": "^20.0.0", "c8": "^8.0.0", "prettier": "^3.0.0", - "rehype-stringify": "^9.0.0", + "rehype-stringify": "^10.0.0", "remark-cli": "^11.0.0", - "remark-parse": "^10.0.0", + "remark-parse": "^11.0.0", "remark-preset-wooorm": "^9.0.0", - "remark-stringify": "^10.0.0", + "remark-stringify": "^11.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", "xo": "^0.56.0" diff --git a/readme.md b/readme.md index 83990fb..a74e4cb 100644 --- a/readme.md +++ b/readme.md @@ -172,7 +172,7 @@ example.md: no issues found ## API -This package exports `defaultHandlers`, `all`, and `one`. +This package exports `defaultHandlers`. The default export is `remarkRehype`. ### `unified().use(remarkRehype[, destination][, options])` @@ -302,16 +302,6 @@ to the documentation available in [`mdast-util-to-hast`][mdast-util-to-hast]. The `defaultHandlers` export from [`mdast-util-to-hast`][mdast-util-to-hast], useful when passing in your own handlers. -### `all` - -The `all` export from [`mdast-util-to-hast`][mdast-util-to-hast], -useful when passing in your own handlers. - -### `one` - -The `one` export from [`mdast-util-to-hast`][mdast-util-to-hast], -useful when passing in your own handlers. - ## Examples ### Example: supporting HTML in markdown naïvely diff --git a/test.js b/test.js index b3a3d61..7839e40 100644 --- a/test.js +++ b/test.js @@ -9,10 +9,8 @@ import remarkRehype from './index.js' test('remarkRehype', async function (t) { await t.test('should expose the public api', async function () { assert.deepEqual(Object.keys(await import('./index.js')).sort(), [ - 'all', 'default', - 'defaultHandlers', - 'one' + 'defaultHandlers' ]) })