File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
* @typedef {import('./types.js').MdastRoot } MdastRoot
13
13
*/
14
14
15
- // @ts -expect-error: next.
16
- import minifyWhitespace from 'rehype-minify-whitespace'
15
+ import rehypeMinifyWhitespace from 'rehype-minify-whitespace'
17
16
import { convert } from 'unist-util-is'
18
17
import { visit } from 'unist-util-visit'
19
18
import { one } from './one.js'
@@ -107,7 +106,8 @@ export function toMdast(tree, options = {}) {
107
106
}
108
107
} )
109
108
110
- minifyWhitespace ( { newlines : options . newlines === true } ) ( tree )
109
+ // @ts -expect-error: does return a transformer, that does accept any node.
110
+ rehypeMinifyWhitespace ( { newlines : options . newlines === true } ) ( tree )
111
111
112
112
const result = one ( h , tree , undefined )
113
113
Original file line number Diff line number Diff line change 46
46
"hast-util-to-text" : " ^3.0.0" ,
47
47
"mdast-util-phrasing" : " ^3.0.0" ,
48
48
"mdast-util-to-string" : " ^3.0.0" ,
49
- "rehype-minify-whitespace" : " ^4 .0.0" ,
49
+ "rehype-minify-whitespace" : " ^5 .0.0" ,
50
50
"repeat-string" : " ^1.0.0" ,
51
51
"trim-trailing-lines" : " ^2.0.0" ,
52
52
"unist-util-is" : " ^5.0.0" ,
You can’t perform that action at this time.
0 commit comments