diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb63387..8fdea18 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,13 +7,13 @@ jobs: name: ${{matrix.node}} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{matrix.node}} - run: npm install - run: npm test - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 strategy: matrix: node: diff --git a/package.json b/package.json index b76e08b..c6f415f 100644 --- a/package.json +++ b/package.json @@ -36,14 +36,14 @@ }, "devDependencies": { "@types/node": "^20.0.0", - "c8": "^8.0.0", + "c8": "^9.0.0", "prettier": "^3.0.0", "rehype": "^13.0.0", - "remark-cli": "^11.0.0", - "remark-preset-wooorm": "^9.0.0", + "remark-cli": "^12.0.0", + "remark-preset-wooorm": "^10.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", - "xo": "^0.56.0" + "xo": "^0.58.0" }, "scripts": { "build": "tsc --build --clean && tsc --build && type-coverage", diff --git a/readme.md b/readme.md index 74a2b63..b25fc9b 100644 --- a/readme.md +++ b/readme.md @@ -12,19 +12,19 @@ ## 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(rehypeShiftHeading[, options])`](#unifieduserehypeshiftheading-options) - * [`Options`](#options) -* [Types](#types) -* [Compatibility](#compatibility) -* [Security](#security) -* [Related](#related) -* [Contribute](#contribute) -* [License](#license) +* [What is this?](#what-is-this) +* [When should I use this?](#when-should-i-use-this) +* [Install](#install) +* [Use](#use) +* [API](#api) + * [`unified().use(rehypeShiftHeading[, options])`](#unifieduserehypeshiftheading-options) + * [`Options`](#options) +* [Types](#types) +* [Compatibility](#compatibility) +* [Security](#security) +* [Related](#related) +* [Contribute](#contribute) +* [License](#license) ## What is this? @@ -109,8 +109,8 @@ Does not shift past `h1` and `h6`. ###### Parameters -* `options` ([`Options`][api-options], optional) - — configuration +* `options` ([`Options`][api-options], optional) + — configuration ###### Returns @@ -122,8 +122,8 @@ Configuration (TypeScript type). ###### Fields -* `shift` (`number`, default: `0`) - — number to shift headings; can be negative to decrease heading levels +* `shift` (`number`, default: `0`) + — number to shift headings; can be negative to decrease heading levels ## Types @@ -149,12 +149,12 @@ Use of `rehype-shift-heading` is safe. ## Related -* [`rehype-slug`](https://github.com/rehypejs/rehype-slug) - — add `id`s to headings -* [`rehype-autolink-headings`](https://github.com/rehypejs/rehype-autolink-headings) - — add links to headings -* [`rehype-headings-normalize`](https://github.com/hashbite/rehype-headings-normalize) - — normalizes headlines by shifting to a minimum level and closing gaps +* [`rehype-slug`](https://github.com/rehypejs/rehype-slug) + — add `id`s to headings +* [`rehype-autolink-headings`](https://github.com/rehypejs/rehype-autolink-headings) + — add links to headings +* [`rehype-headings-normalize`](https://github.com/hashbite/rehype-headings-normalize) + — normalizes headlines by shifting to a minimum level and closing gaps ## Contribute