@milkdown/preset-gfm documentation has wrong information? #139
-
Hey! 👋 I'm confused about the @milkdown/preset-gfm documentation because it's the same as @milkdown/preset-commonmark. I was looking at the NES example which works on CodeSandbox, but if you try using a local setup you have to install > node_modules/@milkdown/plugin-tooltip/lib/utility/input.js:3:40: error: Could not resolve "@milkdown/preset-commonmark" (mark it as external to exclude it from the bundle)
3 │ import { ModifyImage, ModifyLink } from '@milkdown/preset-commonmark'; Thanks for your great work! 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The documentation of preset-gfm is wrong, I need to update it. And the preset-commonmark it the dependency of preset-gfm, if you install preset-commonmark I think it should be installed in node_modules, except for pnpm, because it's organized by a different pattern, I will try to fix it. Do you use pnpm? |
Beta Was this translation helpful? Give feedback.
-
Thanks for confirming. 😄 I use |
Beta Was this translation helpful? Give feedback.
The documentation of preset-gfm is wrong, I need to update it.
And the preset-commonmark it the dependency of preset-gfm, if you install preset-commonmark I think it should be installed in node_modules, except for pnpm, because it's organized by a different pattern, I will try to fix it. Do you use pnpm?