Skip to content

Commit

Permalink
Upgrade rehype and unified dependencies
Browse files Browse the repository at this point in the history
These have some helpful additions and fixes we should be using. `remark-stringify` is *not* upgraded here since it had a major change in v8 that needs more careful evaluation.
  • Loading branch information
Mr0grog committed Apr 18, 2022
1 parent 8fdaadd commit 1b2240c
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 286 deletions.
4 changes: 2 additions & 2 deletions lib/rehype-to-remark-with-spaces.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const rehype2remark = require('rehype-remark');
import rehypeRemark from 'rehype-remark';

/**
* The official rehype-remark plugin gets a little aggeressive with removing
Expand Down Expand Up @@ -33,7 +33,7 @@ export default function rehype2remarkWithSpaces () {
}
}

const convert = rehype2remark.apply(this, arguments);
const convert = rehypeRemark.apply(this, arguments);
return function (tree, file) {
preserveInitialSpaces(tree);
const markdownTree = convert.apply(this, [tree, file]);
Expand Down
Loading

0 comments on commit 1b2240c

Please # to comment.