kevin940726 / remark-code-import

📝 Populate code blocks from files
https://npm.im/remark-code-import
MIT License
63 stars 11 forks source link

Update to Unified 11 #27

Open lishaduck opened 4 months ago

lishaduck commented 4 months ago

Hello! I decided to take a shot at this and just skip kevin940726/to-gatsby-remark-plugin#1 for now. This updates:

Devtools:

Unified:

These changes make this plugin support Unified 11.

I also updated the code to use async/await and node:fs/promises, as TS was complaining. Vitest 1.0 also changed the snapshot format, so a test had a minor update there.