retextjs / retext-keywords

plugin to extract keywords and key-phrases
https://retextjs.github.io/retext-keywords/
MIT License
327 stars 32 forks source link

Readme demo crashes against current retext #10

Closed bebraw closed 7 years ago

bebraw commented 7 years ago

Demo: https://github.com/bebraw/keywords-demo .

Crash

.../node_modules/retext-keywords/index.js:14
  retext.use(pos);
        ^

TypeError: Cannot read property 'use' of undefined

Could it be possible the interface has changed somehow?

wooorm commented 7 years ago

Probably, I’ll check, thanks!

wooorm commented 7 years ago

Yup, I haven’t updated to the latest retext yet, I’ll publish in a sec!

bebraw commented 7 years ago

Ok, on a related note, what's the smartest way to push a collection of Markdown files through it? I could glob and combine. Just wondering if there's a better way.

wooorm commented 7 years ago

I’d say first glob, then use to-vfile’s .read function to create virtual files from file-paths!

bebraw commented 7 years ago

Ok, thanks.

wooorm commented 7 years ago

👍

Thanks for raising this issue!