Skip to content

Commit 95a6156

Browse files
committed
Update dev-dependencies
1 parent 6e0a70b commit 95a6156

File tree

10 files changed

+639
-502
lines changed

10 files changed

+639
-502
lines changed

doc/plugins.md

Lines changed: 435 additions & 295 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,20 @@
1919
"devDependencies": {
2020
"@types/mdast": "^4.0.0",
2121
"@types/node": "^20.0.0",
22-
"c8": "^8.0.0",
22+
"c8": "^9.0.0",
2323
"mdast-util-gfm": "^3.0.0",
2424
"micromark-extension-gfm": "^3.0.0",
2525
"prettier": "^3.0.0",
26-
"remark-preset-wooorm": "^9.0.0",
26+
"remark-preset-wooorm": "^10.0.0",
2727
"type-coverage": "^2.0.0",
2828
"typescript": "^5.0.0",
2929
"unified": "^11.0.0",
3030
"unist-util-remove-position": "^5.0.0",
31-
"vfile": "^6.0.0",
32-
"xo": "^0.56.0"
31+
"xo": "^0.58.0"
3332
},
34-
"#": "to do: remove `vfile` above when dust settles, it’s not needed, other that for TS build bugs currently",
3533
"scripts": {
36-
"#": "./packages/remark-cli/cli.js . --frail --output --quiet",
3734
"build": "tsc --build --clean && tsc --build && type-coverage",
38-
"format": "prettier . --log-level warn --write && xo --fix",
35+
"format": "./packages/remark-cli/cli.js . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
3936
"prepack": "npm run build && npm run format",
4037
"test": "npm run build && npm run format && npm run test-coverage",
4138
"test-api": "node --conditions development test.js",

packages/remark-cli/cli.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {remark} from 'remark'
1414
import {args} from 'unified-args'
1515

1616
/** @type {Pack} */
17-
const proc = JSON.parse(
17+
const process_ = JSON.parse(
1818
String(
1919
await fs.readFile(
2020
new URL('package.json', resolve('remark', import.meta.url))
@@ -30,14 +30,14 @@ const cli = JSON.parse(
3030
args({
3131
description: cli.description,
3232
extensions: markdownExtensions,
33-
ignoreName: '.' + proc.name + 'ignore',
34-
name: proc.name,
35-
packageField: proc.name + 'Config',
36-
pluginPrefix: proc.name,
33+
ignoreName: '.' + process_.name + 'ignore',
34+
name: process_.name,
35+
packageField: process_.name + 'Config',
36+
pluginPrefix: process_.name,
3737
processor: remark,
38-
rcName: '.' + proc.name + 'rc',
38+
rcName: '.' + process_.name + 'rc',
3939
version: [
40-
proc.name + ': ' + proc.version,
40+
process_.name + ': ' + process_.version,
4141
cli.name + ': ' + cli.version
4242
].join(', ')
4343
})

packages/remark-cli/readme.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ Command line interface to inspect and change markdown files with **[remark][]**.
1111

1212
## Contents
1313

14-
* [What is this?](#what-is-this)
15-
* [When should I use this?](#when-should-i-use-this)
16-
* [Install](#install)
17-
* [Use](#use)
18-
* [CLI](#cli)
19-
* [Examples](#examples)
20-
* [Example: checking and formatting markdown on the CLI](#example-checking-and-formatting-markdown-on-the-cli)
21-
* [Example: config files (JSON, YAML, JS)](#example-config-files-json-yaml-js)
22-
* [Compatibility](#compatibility)
23-
* [Security](#security)
24-
* [Contribute](#contribute)
25-
* [Sponsor](#sponsor)
26-
* [License](#license)
14+
* [What is this?](#what-is-this)
15+
* [When should I use this?](#when-should-i-use-this)
16+
* [Install](#install)
17+
* [Use](#use)
18+
* [CLI](#cli)
19+
* [Examples](#examples)
20+
* [Example: checking and formatting markdown on the CLI](#example-checking-and-formatting-markdown-on-the-cli)
21+
* [Example: config files (JSON, YAML, JS)](#example-config-files-json-yaml-js)
22+
* [Compatibility](#compatibility)
23+
* [Security](#security)
24+
* [Contribute](#contribute)
25+
* [Sponsor](#sponsor)
26+
* [License](#license)
2727

2828
## What is this?
2929

@@ -122,14 +122,14 @@ More info on all these options is available at [`unified-args`][unified-args],
122122
which does the work.
123123
`remark-cli` is `unified-args` preconfigured to:
124124

125-
* load `remark-` plugins
126-
* search for markdown extensions
127-
([`.md`, `.markdown`, etc][markdown-extensions])
128-
* ignore paths found in [`.remarkignore` files][ignore-file]
129-
* load configuration from
130-
[`.remarkrc`, `.remarkrc.js`, etc files][config-file]
131-
* use configuration from
132-
[`remarkConfig` fields in `package.json` files][config-file]
125+
* load `remark-` plugins
126+
* search for markdown extensions
127+
([`.md`, `.markdown`, etc][markdown-extensions])
128+
* ignore paths found in [`.remarkignore` files][ignore-file]
129+
* load configuration from
130+
[`.remarkrc`, `.remarkrc.js`, etc files][config-file]
131+
* use configuration from
132+
[`remarkConfig` fields in `package.json` files][config-file]
133133

134134
## Examples
135135

@@ -268,14 +268,14 @@ The order of precedence is as follows.
268268
Earlier wins (so in the above file structure `folder/.remarkrc.js` wins over
269269
`folder/package.json`):
270270

271-
1. `.remarkrc` (JSON)
272-
3. `.remarkrc.cjs` (CJS)
273-
5. `.remarkrc.js` (CJS or ESM, depending on `type: 'module'` in `package.json`)
274-
2. `.remarkrc.json` (JSON)
275-
4. `.remarkrc.mjs` (ESM)
276-
6. `.remarkrc.yaml` (YAML)
277-
7. `.remarkrc.yml` (YAML)
278-
8. `package.json` with `remarkConfig` field
271+
1. `.remarkrc` (JSON)
272+
2. `.remarkrc.cjs` (CJS)
273+
3. `.remarkrc.js` (CJS or ESM, depending on `type: 'module'` in `package.json`)
274+
4. `.remarkrc.json` (JSON)
275+
5. `.remarkrc.mjs` (ESM)
276+
6. `.remarkrc.yaml` (YAML)
277+
7. `.remarkrc.yml` (YAML)
278+
8. `package.json` with `remarkConfig` field
279279

280280
## Compatibility
281281

packages/remark-parse/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default function remarkParse(options) {
2929
/**
3030
* @type {Parser}
3131
*/
32-
function parser(doc) {
33-
return fromMarkdown(doc, {
32+
function parser(document) {
33+
return fromMarkdown(document, {
3434
...self.data('settings'),
3535
...options,
3636
// Note: these options are not in the readme.

packages/remark-parse/readme.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
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(remarkParse)`](#unifieduseremarkparse)
21-
* [Examples](#examples)
22-
* [Example: support GFM and frontmatter](#example-support-gfm-and-frontmatter)
23-
* [Example: turning markdown into a man page](#example-turning-markdown-into-a-man-page)
24-
* [Syntax](#syntax)
25-
* [Syntax tree](#syntax-tree)
26-
* [Types](#types)
27-
* [Compatibility](#compatibility)
28-
* [Security](#security)
29-
* [Contribute](#contribute)
30-
* [Sponsor](#sponsor)
31-
* [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(remarkParse)`](#unifieduseremarkparse)
21+
* [Examples](#examples)
22+
* [Example: support GFM and frontmatter](#example-support-gfm-and-frontmatter)
23+
* [Example: turning markdown into a man page](#example-turning-markdown-into-a-man-page)
24+
* [Syntax](#syntax)
25+
* [Syntax tree](#syntax-tree)
26+
* [Types](#types)
27+
* [Compatibility](#compatibility)
28+
* [Security](#security)
29+
* [Contribute](#contribute)
30+
* [Sponsor](#sponsor)
31+
* [License](#license)
3232

3333
## What is this?
3434

packages/remark-stringify/readme.md

Lines changed: 71 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
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(remarkStringify[, options])`](#unifieduseremarkstringify-options)
21-
* [Syntax](#syntax)
22-
* [Syntax tree](#syntax-tree)
23-
* [Types](#types)
24-
* [Security](#security)
25-
* [Contribute](#contribute)
26-
* [Sponsor](#sponsor)
27-
* [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(remarkStringify[, options])`](#unifieduseremarkstringify-options)
21+
* [`Options`](#options)
22+
* [Syntax](#syntax)
23+
* [Syntax tree](#syntax-tree)
24+
* [Types](#types)
25+
* [Compatibility](#compatibility)
26+
* [Security](#security)
27+
* [Contribute](#contribute)
28+
* [Sponsor](#sponsor)
29+
* [License](#license)
2830

2931
## What is this?
3032

@@ -125,8 +127,8 @@ Add support for serializing to markdown.
125127

126128
###### Parameters
127129

128-
* `options` ([`Options`][api-options], optional)
129-
— configuration
130+
* `options` ([`Options`][api-options], optional)
131+
— configuration
130132

131133
###### Returns
132134

@@ -138,60 +140,60 @@ Configuration (TypeScript type).
138140

139141
###### Fields
140142

141-
* `bullet` (`'*'`, `'+'`, or `'-'`, default: `'*'`)
142-
— marker to use for bullets of items in unordered lists
143-
* `bulletOther` (`'*'`, `'+'`, or `'-'`, default: `'-'` when `bullet` is
144-
`'*'`, `'*'` otherwise)
145-
— marker to use in certain cases where the primary bullet doesn’t work;
146-
cannot be equal to `bullet`
147-
* `bulletOrdered` (`'.'` or `')'`, default: `'.'`)
148-
— marker to use for bullets of items in ordered lists
149-
* `closeAtx` (`boolean`, default: `false`)
150-
— add the same number of number signs (`#`) at the end of an ATX heading as
151-
the opening sequence
152-
* `emphasis` (`'*'` or `'_'`, default: `'*'`)
153-
— marker to use for emphasis
154-
* `fence` (``'`'`` or `'~'`, default: ``'`'``)
155-
— marker to use for fenced code
156-
* `fences` (`boolean`, default: `true`)
157-
— use fenced code always; when `false`, uses fenced code if there is a
158-
language defined, if the code is empty, or if it starts or ends in blank
159-
lines
160-
* `handlers` (`Handlers`, optional)
161-
— handle particular nodes;
162-
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
163-
* `incrementListMarker` (`boolean`, default: `true`)
164-
— increment the counter of ordered lists items
165-
* `join` (`Array<Join>`, optional)
166-
— how to join blocks;
167-
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
168-
* `listItemIndent` (`'mixed'`, `'one'`, or `'tab'`, default: `'one'`)
169-
— how to indent the content of list items;
170-
either with the size of the bullet plus one space (when `'one'`), a tab
171-
stop (`'tab'`), or depending on the item and its parent list: `'mixed'`
172-
uses `'one'` if the item and list are tight and `'tab'` otherwise
173-
* `quote` (`'"'` or `"'"`, default: `'"'`)
174-
— marker to use for titles
175-
* `resourceLink` (`boolean`, default: `false`)
176-
— always use resource links (`[text](url)`);
177-
when `false`, uses autolinks (`<https://example.com>`) when possible
178-
* `rule` (`'*'`, `'-'`, or `'_'`, default: `'*'`)
179-
— marker to use for thematic breaks
180-
* `ruleRepetition` (`number`, default: `3`, min: `3`)
181-
— number of markers to use for thematic breaks
182-
* `ruleSpaces` (`boolean`, default: `false`)
183-
— add spaces between markers in thematic breaks
184-
* `setext` (`boolean`, default: `false`)
185-
— use setext headings when possible;
186-
when `true`, uses setext headings (`heading\n=======`) for non-empty rank 1
187-
or 2 headings
188-
* `strong` (`'*'` or `'_'`, default: `'*'`)
189-
— marker to use for strong
190-
* `tightDefinitions` (`boolean`, default: `false`)
191-
— join definitions without a blank line
192-
* `unsafe` (`Array<Unsafe>`, optional)
193-
— schemas that define when characters cannot occur;
194-
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
143+
* `bullet` (`'*'`, `'+'`, or `'-'`, default: `'*'`)
144+
— marker to use for bullets of items in unordered lists
145+
* `bulletOther` (`'*'`, `'+'`, or `'-'`, default: `'-'` when `bullet` is
146+
`'*'`, `'*'` otherwise)
147+
— marker to use in certain cases where the primary bullet doesn’t work;
148+
cannot be equal to `bullet`
149+
* `bulletOrdered` (`'.'` or `')'`, default: `'.'`)
150+
— marker to use for bullets of items in ordered lists
151+
* `closeAtx` (`boolean`, default: `false`)
152+
— add the same number of number signs (`#`) at the end of an ATX heading as
153+
the opening sequence
154+
* `emphasis` (`'*'` or `'_'`, default: `'*'`)
155+
— marker to use for emphasis
156+
* `fence` (``'`'`` or `'~'`, default: ``'`'``)
157+
— marker to use for fenced code
158+
* `fences` (`boolean`, default: `true`)
159+
— use fenced code always; when `false`, uses fenced code if there is a
160+
language defined, if the code is empty, or if it starts or ends in blank
161+
lines
162+
* `handlers` (`Handlers`, optional)
163+
— handle particular nodes;
164+
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
165+
* `incrementListMarker` (`boolean`, default: `true`)
166+
— increment the counter of ordered lists items
167+
* `join` (`Array<Join>`, optional)
168+
— how to join blocks;
169+
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
170+
* `listItemIndent` (`'mixed'`, `'one'`, or `'tab'`, default: `'one'`)
171+
— how to indent the content of list items;
172+
either with the size of the bullet plus one space (when `'one'`), a tab
173+
stop (`'tab'`), or depending on the item and its parent list: `'mixed'`
174+
uses `'one'` if the item and list are tight and `'tab'` otherwise
175+
* `quote` (`'"'` or `"'"`, default: `'"'`)
176+
— marker to use for titles
177+
* `resourceLink` (`boolean`, default: `false`)
178+
— always use resource links (`[text](url)`);
179+
when `false`, uses autolinks (`<https://example.com>`) when possible
180+
* `rule` (`'*'`, `'-'`, or `'_'`, default: `'*'`)
181+
— marker to use for thematic breaks
182+
* `ruleRepetition` (`number`, default: `3`, min: `3`)
183+
— number of markers to use for thematic breaks
184+
* `ruleSpaces` (`boolean`, default: `false`)
185+
— add spaces between markers in thematic breaks
186+
* `setext` (`boolean`, default: `false`)
187+
— use setext headings when possible;
188+
when `true`, uses setext headings (`heading\n=======`) for non-empty rank 1
189+
or 2 headings
190+
* `strong` (`'*'` or `'_'`, default: `'*'`)
191+
— marker to use for strong
192+
* `tightDefinitions` (`boolean`, default: `false`)
193+
— join definitions without a blank line
194+
* `unsafe` (`Array<Unsafe>`, optional)
195+
— schemas that define when characters cannot occur;
196+
see [`mdast-util-to-markdown`][mdast-util-to-markdown] for more info
195197

196198
<!-- Note: `extensions` intentionally not supported/documented. -->
197199

packages/remark/readme.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ serializing to markdown.
1313

1414
## Contents
1515

16-
* [What is this?](#what-is-this)
17-
* [When should I use this?](#when-should-i-use-this)
18-
* [Install](#install)
19-
* [Use](#use)
20-
* [API](#api)
21-
* [`remark()`](#remark-1)
22-
* [Examples](#examples)
23-
* [Example: checking markdown](#example-checking-markdown)
24-
* [Example: passing options to `remark-stringify`](#example-passing-options-to-remark-stringify)
25-
* [Syntax](#syntax)
26-
* [Syntax tree](#syntax-tree)
27-
* [Types](#types)
28-
* [Compatibility](#compatibility)
29-
* [Security](#security)
30-
* [Contribute](#contribute)
31-
* [Sponsor](#sponsor)
32-
* [License](#license)
16+
* [What is this?](#what-is-this)
17+
* [When should I use this?](#when-should-i-use-this)
18+
* [Install](#install)
19+
* [Use](#use)
20+
* [API](#api)
21+
* [`remark()`](#remark-1)
22+
* [Examples](#examples)
23+
* [Example: checking markdown](#example-checking-markdown)
24+
* [Example: passing options to `remark-stringify`](#example-passing-options-to-remark-stringify)
25+
* [Syntax](#syntax)
26+
* [Syntax tree](#syntax-tree)
27+
* [Types](#types)
28+
* [Compatibility](#compatibility)
29+
* [Security](#security)
30+
* [Contribute](#contribute)
31+
* [Sponsor](#sponsor)
32+
* [License](#license)
3333

3434
## What is this?
3535

0 commit comments

Comments
 (0)