Skip to content

Commit d13f7ad

Browse files
committedMar 11, 2025
Update @types/hast
1 parent 7946376 commit d13f7ad

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
1212
],
1313
"dependencies": {
14-
"@types/hast": "^2.0.0",
14+
"@types/hast": "^3.0.0",
1515
"@types/prismjs": "^1.0.0",
16-
"hastscript": "^7.0.0",
16+
"hastscript": "^9.0.0",
1717
"parse-entities": "^4.0.0"
1818
},
1919
"description": "Lightweight, robust, elegant virtual syntax highlighting using Prism",

‎readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ and elegant virtual syntax highlighting using [Prism][github-prism].
2020
* [Use](#use)
2121
* [API](#api)
2222
* [`refractor`](#refractor-1)
23-
* [`Root`](#root)
2423
* [`Syntax`](#syntax)
2524
* [Examples](#examples)
2625
* [Example: serializing hast as html](#example-serializing-hast-as-html)

‎test/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ test('fixtures', async function (t) {
174174
const outputUrl = new URL(name + '/output.html', root)
175175
const input_ = await fs.readFile(inputUrl, 'utf8')
176176
const input = input_.trim()
177-
// @ts-expect-error: to do: update `@types/hast` in dependencies.
178177
const actual = toHtml(refractor.highlight(input, lang))
179178
/** @type {string} */
180179
let expected

0 commit comments

Comments
 (0)
Please sign in to comment.