Skip to content

Commit

Permalink
Fix imports and refresh lock
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Oct 12, 2024
1 parent a155acd commit 6b630e5
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 280 deletions.
22 changes: 22 additions & 0 deletions plugin-site.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/gatsby-rehype-autolink-headers/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/gatsby-rehype-rewrite-ids/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/gatsby-rehype-rewrite-img-src/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/gatsby-transformer-rehype/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/plugin-site/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/plugins/plugin-site/public" />
<excludeFolder url="file://$MODULE_DIR$/.yarn" />
</content>
<orderEntry type="jdk" jdkName="temurin-17" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
2 changes: 1 addition & 1 deletion plugins/gatsby-rehype-autolink-headers/index.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import toString from 'hast-util-to-string';
import {toString} from 'hast-util-to-string';
import visit from 'unist-util-visit';
import slugger from 'github-slugger';
import _ from 'lodash';
Expand Down
4 changes: 2 additions & 2 deletions plugins/gatsby-transformer-rehype/extend-node-type.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from 'lodash';
import {rehype as Rehype} from 'rehype';
import stripPosition from 'unist-util-remove-position';
import hastReparseRaw from 'hast-util-raw';
import {raw} from 'hast-util-raw';
import visit from 'unist-util-visit';

// ES6 instead of Bluebird's promise.each
Expand Down Expand Up @@ -278,7 +278,7 @@ export default ({
resolve(htmlNode) {
return getHtmlAst(htmlNode).then((ast) => {
const strippedAst = stripPosition(_.clone(ast), true);
return hastReparseRaw(strippedAst);
return raw(strippedAst);
});
},
},
Expand Down
Loading

0 comments on commit 6b630e5

Please sign in to comment.