File tree 4 files changed +173
-159
lines changed
4 files changed +173
-159
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('unist-util-visit ').Node & {properties: Object<any, any>} } Node
3
- * @typedef {import('unist-util-visit ').Parent & {properties: Object<any, any>} } Parent
2
+ * @typedef {import('unist').Node & {properties: Object<any, any>} } Node
3
+ * @typedef {import('unist').Parent & {properties: Object<any, any>} } Parent
4
4
* @typedef {import('unist-util-visit').Visitor<Node> } Visitor
5
5
*/
6
6
7
7
import { visit } from 'unist-util-visit'
8
- import toString from 'hast-util-to-string'
8
+ import { toString } from 'hast-util-to-string'
9
9
import { refractor } from 'refractor/lib/all.js'
10
10
import rangeParser from 'parse-numeric-range'
11
11
@@ -113,6 +113,7 @@ const rehypePrism = (options) => {
113
113
}
114
114
115
115
const shouldHighlightLine = calculateLinesToHighlight ( meta )
116
+ // @ts -ignore
116
117
const codeLineArray = splitLine ( toString ( node ) )
117
118
118
119
for ( const [ i , line ] of codeLineArray . entries ( ) ) {
You can’t perform that action at this time.
0 commit comments