vesparny / marky

A markdown editor built with Electron and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Req: Make markdown-it plugins installation configurable

Zev23 opened this issue · comments

commented

Since there are many plugins available for markdown-it, can you make it configurable?

Scenario:
Add the plugins by npm install markdown-it-deflist markdown-it-classy --save and then manually add the plugin names in package.json or other config file to load.

Example code:
https://github.com/celsomiranda/hexo-renderer-markdown-it/blob/master/lib/renderer.js

This is something we can look into.
Would you like to attempt a PR?

commented

I did consider before request but the currently this is not using "require" to import module so i not confident.

I know "require" will search in parent level if a module is not found in the local level. Not sure about "import".