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 1212 * @typedef {import('./types.js').MdastRoot } MdastRoot
1313 */
1414
15- // @ts -expect-error: next.
16- import minifyWhitespace from 'rehype-minify-whitespace'
15+ import rehypeMinifyWhitespace from 'rehype-minify-whitespace'
1716import { convert } from 'unist-util-is'
1817import { visit } from 'unist-util-visit'
1918import { one } from './one.js'
@@ -107,7 +106,8 @@ export function toMdast(tree, options = {}) {
107106 }
108107 } )
109108
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 )
111111
112112 const result = one ( h , tree , undefined )
113113
Original file line number Diff line number Diff line change 4646 "hast-util-to-text" : " ^3.0.0" ,
4747 "mdast-util-phrasing" : " ^3.0.0" ,
4848 "mdast-util-to-string" : " ^3.0.0" ,
49- "rehype-minify-whitespace" : " ^4 .0.0" ,
49+ "rehype-minify-whitespace" : " ^5 .0.0" ,
5050 "repeat-string" : " ^1.0.0" ,
5151 "trim-trailing-lines" : " ^2.0.0" ,
5252 "unist-util-is" : " ^5.0.0" ,
You can’t perform that action at this time.
0 commit comments