Update dev-dependencies

This commit is contained in:
Titus Wormer 2025-01-22 15:57:52 +01:00
parent 876a45ad4c
commit 7831904974
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E
3 changed files with 41 additions and 38 deletions

View file

@ -39,17 +39,17 @@
"unified": "^11.0.0" "unified": "^11.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.0.0", "@types/node": "^22.0.0",
"c8": "^8.0.0", "c8": "^10.0.0",
"is-hidden": "^2.0.0", "is-hidden": "^2.0.0",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"remark": "^15.0.0", "remark": "^15.0.0",
"remark-cli": "^11.0.0", "remark-cli": "^12.0.0",
"remark-preset-wooorm": "^9.0.0", "remark-preset-wooorm": "^10.0.0",
"to-vfile": "^8.0.0", "to-vfile": "^8.0.0",
"type-coverage": "^2.0.0", "type-coverage": "^2.0.0",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"xo": "^0.56.0" "xo": "^0.60.0"
}, },
"scripts": { "scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage", "build": "tsc --build --clean && tsc --build && type-coverage",
@ -89,6 +89,9 @@
} }
} }
], ],
"prettier": true "prettier": true,
"rules": {
"logical-assignment-operators": "off"
}
} }
} }

View file

@ -14,26 +14,26 @@ proposal][commonmark-prop] (`:cite[smith04]`,
## Contents ## Contents
* [What is this?](#what-is-this) * [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this) * [When should I use this?](#when-should-i-use-this)
* [Install](#install) * [Install](#install)
* [Use](#use) * [Use](#use)
* [API](#api) * [API](#api)
* [`unified().use(remarkDirective)`](#unifieduseremarkdirective) * [`unified().use(remarkDirective)`](#unifieduseremarkdirective)
* [Examples](#examples) * [Examples](#examples)
* [Example: YouTube](#example-youtube) * [Example: YouTube](#example-youtube)
* [Example: Styled blocks](#example-styled-blocks) * [Example: Styled blocks](#example-styled-blocks)
* [Authoring](#authoring) * [Authoring](#authoring)
* [HTML](#html) * [HTML](#html)
* [CSS](#css) * [CSS](#css)
* [Syntax](#syntax) * [Syntax](#syntax)
* [Syntax tree](#syntax-tree) * [Syntax tree](#syntax-tree)
* [Types](#types) * [Types](#types)
* [Compatibility](#compatibility) * [Compatibility](#compatibility)
* [Security](#security) * [Security](#security)
* [Related](#related) * [Related](#related)
* [Contribute](#contribute) * [Contribute](#contribute)
* [License](#license) * [License](#license)
## What is this? ## What is this?
@ -410,15 +410,15 @@ attacks.
## Related ## Related
* [`remark-gfm`](https://github.com/remarkjs/remark-gfm) * [`remark-gfm`](https://github.com/remarkjs/remark-gfm)
— support GFM (autolink literals, footnotes, strikethrough, tables, — support GFM (autolink literals, footnotes, strikethrough, tables,
tasklists) tasklists)
* [`remark-frontmatter`](https://github.com/remarkjs/remark-frontmatter) * [`remark-frontmatter`](https://github.com/remarkjs/remark-frontmatter)
— support frontmatter (YAML, TOML, and more) — support frontmatter (YAML, TOML, and more)
* [`remark-math`](https://github.com/remarkjs/remark-math) * [`remark-math`](https://github.com/remarkjs/remark-math)
— support math — support math
* [`remark-mdx`](https://github.com/mdx-js/mdx/tree/main/packages/remark-mdx) * [`remark-mdx`](https://github.com/mdx-js/mdx/tree/main/packages/remark-mdx)
— support MDX (ESM, JSX, expressions) — support MDX (ESM, JSX, expressions)
## Contribute ## Contribute

View file

@ -48,8 +48,8 @@ test('fixtures', async function (t) {
/** @type {string} */ /** @type {string} */
let output let output
const proc = remark().use(remarkDirective) const processor = remark().use(remarkDirective)
const actual = proc.parse(input) const actual = processor.parse(input)
try { try {
output = String(await fs.readFile(outputUrl)) output = String(await fs.readFile(outputUrl))
@ -72,7 +72,7 @@ test('fixtures', async function (t) {
assert.deepEqual(actual, expected) assert.deepEqual(actual, expected)
assert.equal(String(await proc.process(input)), String(output)) assert.equal(String(await processor.process(input)), String(output))
}) })
} }
}) })