From 36727b6df470bc763788ae8df367d4cd105c3fc4 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 3 Feb 2025 14:49:38 +0100 Subject: [PATCH] Update dev-dependencies --- lib/index.js | 2 +- package.json | 4 ++-- readme.md | 58 ++++++++++++++++++++++++++-------------------------- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/index.js b/lib/index.js index efbff69..5556772 100644 --- a/lib/index.js +++ b/lib/index.js @@ -59,7 +59,7 @@ export default function rehypeHighlight(options) { if (prefix) { const pos = prefix.indexOf('-') - name = pos > -1 ? prefix.slice(0, pos) : prefix + name = pos === -1 ? prefix : prefix.slice(0, pos) } /** diff --git a/package.json b/package.json index 3ff37ca..76de824 100644 --- a/package.json +++ b/package.json @@ -46,10 +46,10 @@ "prettier": "^3.0.0", "rehype": "^13.0.0", "remark-cli": "^12.0.0", - "remark-preset-wooorm": "^10.0.0", + "remark-preset-wooorm": "^11.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", - "xo": "^0.59.0" + "xo": "^0.60.0" }, "scripts": { "build": "tsc --build --clean && tsc --build && type-coverage", diff --git a/readme.md b/readme.md index 769f873..289ee03 100644 --- a/readme.md +++ b/readme.md @@ -453,52 +453,46 @@ abide by its terms. -[build-badge]: https://github.com/rehypejs/rehype-highlight/workflows/main/badge.svg - -[build]: https://github.com/rehypejs/rehype-highlight/actions +[api-options]: #options -[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-highlight.svg +[api-rehype-highlight]: #unifieduserehypehighlight-options -[coverage]: https://codecov.io/github/rehypejs/rehype-highlight +[author]: https://wooorm.com -[downloads-badge]: https://img.shields.io/npm/dm/rehype-highlight.svg +[backers-badge]: https://opencollective.com/unified/backers/badge.svg -[downloads]: https://www.npmjs.com/package/rehype-highlight +[build]: https://github.com/rehypejs/rehype-highlight/actions -[size-badge]: https://img.shields.io/bundlejs/size/rehype-highlight +[build-badge]: https://github.com/rehypejs/rehype-highlight/workflows/main/badge.svg -[size]: https://bundlejs.com/?q=rehype-highlight +[chat]: https://github.com/rehypejs/rehype/discussions -[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg +[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg -[backers-badge]: https://opencollective.com/unified/backers/badge.svg +[coc]: https://github.com/rehypejs/.github/blob/HEAD/code-of-conduct.md [collective]: https://opencollective.com/unified -[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg +[contributing]: https://github.com/rehypejs/.github/blob/HEAD/contributing.md -[chat]: https://github.com/rehypejs/rehype/discussions +[coverage]: https://codecov.io/github/rehypejs/rehype-highlight -[npm]: https://docs.npmjs.com/cli/install +[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-highlight.svg -[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c +[downloads]: https://www.npmjs.com/package/rehype-highlight -[esmsh]: https://esm.sh +[downloads-badge]: https://img.shields.io/npm/dm/rehype-highlight.svg -[health]: https://github.com/rehypejs/.github +[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c -[contributing]: https://github.com/rehypejs/.github/blob/HEAD/contributing.md +[esmsh]: https://esm.sh -[support]: https://github.com/rehypejs/.github/blob/HEAD/support.md +[github-lowlight-css]: https://github.com/wooorm/lowlight#css -[coc]: https://github.com/rehypejs/.github/blob/HEAD/code-of-conduct.md +[health]: https://github.com/rehypejs/.github [license]: license -[author]: https://wooorm.com - -[github-lowlight-css]: https://github.com/wooorm/lowlight#css - [lowlight]: https://github.com/wooorm/lowlight [lowlight-all]: https://github.com/wooorm/lowlight#all @@ -509,20 +503,26 @@ abide by its terms. [lowlight-register-alias]: https://github.com/wooorm/lowlight#lowlightregisteraliasaliases +[npm]: https://docs.npmjs.com/cli/install + [rehype]: https://github.com/rehypejs/rehype +[rehype-highlight-code-lines]: https://github.com/ipikuka/rehype-highlight-code-lines + [rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize [rehype-starry-night]: https://github.com/rehypejs/rehype-starry-night -[rehype-highlight-code-lines]: https://github.com/ipikuka/rehype-highlight-code-lines +[size]: https://bundlejs.com/?q=rehype-highlight + +[size-badge]: https://img.shields.io/bundlejs/size/rehype-highlight + +[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg + +[support]: https://github.com/rehypejs/.github/blob/HEAD/support.md [typescript]: https://www.typescriptlang.org [unified]: https://github.com/unifiedjs/unified [unified-transformer]: https://github.com/unifiedjs/unified#transformer - -[api-options]: #options - -[api-rehype-highlight]: #unifieduserehypehighlight-options