traPtitech/markdown-it-spoiler

How to run

Closed this issue · 4 comments

.use(require('markdown-it-spoiler')) ? return error

Yes.
It should work.
Please try to provide a minimum reproduce.

try also: $ npm i @traptitech/markdown-it-spoiler --save

This dependency was not found:

  • /markdown-it-spoiler in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/Editor.vue

To install it, you can run: npm install --save /markdown-it-spoiler

I got it.

.use(require('markdown-it-spoiler'))

is not correct.
You should do

.use(require('@traptitech/markdown-it-spoiler'))

ok solved when install by $ npm i @traptitech/markdown-it-spoiler it dosnt save to node_modules folder when copy it manually it star to work strange thx