Skip to content

Commit bbffd3c

Browse files
committed
Update dev-dependencies
1 parent a64174d commit bbffd3c

File tree

2 files changed

+49
-48
lines changed

2 files changed

+49
-48
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@
4343
"unist-util-visit-parents": "^6.0.0"
4444
},
4545
"devDependencies": {
46-
"@types/node": "^20.0.0",
47-
"c8": "^8.0.0",
46+
"@types/node": "^22.0.0",
47+
"c8": "^10.0.0",
4848
"is-hidden": "^2.0.0",
4949
"prettier": "^3.0.0",
5050
"rehype": "^13.0.0",
51-
"remark-cli": "^11.0.0",
52-
"remark-preset-wooorm": "^9.0.0",
51+
"remark-cli": "^12.0.0",
52+
"remark-preset-wooorm": "^10.0.0",
5353
"to-vfile": "^8.0.0",
5454
"type-coverage": "^2.0.0",
5555
"typescript": "^5.0.0",
56-
"xo": "^0.56.0"
56+
"xo": "^0.59.0"
5757
},
5858
"scripts": {
5959
"build": "tsc --build --clean && tsc --build && type-coverage",
@@ -85,6 +85,7 @@
8585
"xo": {
8686
"prettier": true,
8787
"rules": {
88+
"logical-assignment-operators": "off",
8889
"unicorn/prefer-at": "off",
8990
"unicorn/prefer-string-replace-all": "off"
9091
}

readme.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@
1212

1313
## Contents
1414

15-
* [What is this?](#what-is-this)
16-
* [When should I use this?](#when-should-i-use-this)
17-
* [Install](#install)
18-
* [Use](#use)
19-
* [API](#api)
20-
* [`unified().use(rehypeFormat[, options])`](#unifieduserehypeformat-options)
21-
* [`Options`](#options)
22-
* [Examples](#examples)
23-
* [Example: markdown input (remark)](#example-markdown-input-remark)
24-
* [Example: tabs and blank lines (`indent`, `blanks`)](#example-tabs-and-blank-lines-indent-blanks)
25-
* [Types](#types)
26-
* [Compatibility](#compatibility)
27-
* [Security](#security)
28-
* [Related](#related)
29-
* [Contribute](#contribute)
30-
* [License](#license)
15+
* [What is this?](#what-is-this)
16+
* [When should I use this?](#when-should-i-use-this)
17+
* [Install](#install)
18+
* [Use](#use)
19+
* [API](#api)
20+
* [`unified().use(rehypeFormat[, options])`](#unifieduserehypeformat-options)
21+
* [`Options`](#options)
22+
* [Examples](#examples)
23+
* [Example: markdown input (remark)](#example-markdown-input-remark)
24+
* [Example: tabs and blank lines (`indent`, `blanks`)](#example-tabs-and-blank-lines-indent-blanks)
25+
* [Types](#types)
26+
* [Compatibility](#compatibility)
27+
* [Security](#security)
28+
* [Related](#related)
29+
* [Contribute](#contribute)
30+
* [License](#license)
3131

3232
## What is this?
3333

3434
This package is a [unified][] ([rehype][]) plugin to format whitespace in HTML.
3535
In short, it works as follows:
3636

37-
* collapse all existing white space to either a line ending or a single space
38-
* remove those spaces and line endings if they do not contribute to the
39-
document
40-
* inject needed line endings
41-
* indent previously collapsed line endings properly
37+
* collapse all existing white space to either a line ending or a single space
38+
* remove those spaces and line endings if they do not contribute to the
39+
document
40+
* inject needed line endings
41+
* indent previously collapsed line endings properly
4242

4343
**unified** is a project that transforms content with abstract syntax trees
4444
(ASTs).
@@ -141,8 +141,8 @@ Format whitespace in HTML.
141141

142142
###### Parameters
143143

144-
* `options` ([`Options`][api-options], optional)
145-
— configuration
144+
* `options` ([`Options`][api-options], optional)
145+
— configuration
146146

147147
###### Returns
148148

@@ -154,16 +154,16 @@ Configuration (TypeScript type).
154154

155155
###### Fields
156156

157-
* `blanks` (`Array<string>`, default: `[]`)
158-
— list of tag names to join with a blank line (default: `[]`); these tags,
159-
when next to each other, are joined by a blank line (`\n\n`); for example,
160-
when `['head', 'body']` is given, a blank line is added between these two
161-
* `indent` (`number`, `string`, default: `2`)
162-
— indentation per level (default: `2`); when number, uses that amount of
163-
spaces; when `string`, uses that per indentation level
164-
* `indentInitial` (`boolean`, default: `true`)
165-
— whether to indent the first level (default: `true`); this is usually the
166-
`<html>`, thus not indenting `head` and `body`
157+
* `blanks` (`Array<string>`, default: `[]`)
158+
— list of tag names to join with a blank line (default: `[]`); these tags,
159+
when next to each other, are joined by a blank line (`\n\n`); for example,
160+
when `['head', 'body']` is given, a blank line is added between these two
161+
* `indent` (`number`, `string`, default: `2`)
162+
— indentation per level (default: `2`); when number, uses that amount of
163+
spaces; when `string`, uses that per indentation level
164+
* `indentInitial` (`boolean`, default: `true`)
165+
— whether to indent the first level (default: `true`); this is usually the
166+
`<html>`, thus not indenting `head` and `body`
167167

168168
## Examples
169169

@@ -276,16 +276,16 @@ When in doubt, use [`rehype-sanitize`][rehype-sanitize].
276276

277277
## Related
278278

279-
* [`rehype-minify`](https://github.com/rehypejs/rehype-minify)
280-
— minify HTML
281-
* [`rehype-document`](https://github.com/rehypejs/rehype-document)
282-
— wrap a fragment in a document
283-
* [`rehype-sanitize`](https://github.com/rehypejs/rehype-sanitize)
284-
— sanitize HTML
285-
* [`rehype-toc`](https://github.com/JS-DevTools/rehype-toc)
286-
— add a table of contents (TOC)
287-
* [`rehype-section`](https://github.com/agentofuser/rehype-section)
288-
— wrap headings and their contents in sections
279+
* [`rehype-minify`](https://github.com/rehypejs/rehype-minify)
280+
— minify HTML
281+
* [`rehype-document`](https://github.com/rehypejs/rehype-document)
282+
— wrap a fragment in a document
283+
* [`rehype-sanitize`](https://github.com/rehypejs/rehype-sanitize)
284+
— sanitize HTML
285+
* [`rehype-toc`](https://github.com/JS-DevTools/rehype-toc)
286+
— add a table of contents (TOC)
287+
* [`rehype-section`](https://github.com/agentofuser/rehype-section)
288+
— wrap headings and their contents in sections
289289

290290
## Contribute
291291

0 commit comments

Comments
 (0)