goessner / markdown-it-texmath

Support TeX math equations with your Markdown documents.
MIT License
156 stars 28 forks source link

Why not add katex and markdown-it as dependency? #5

Closed wafer-li closed 6 years ago

wafer-li commented 6 years ago

Since it requires katex and markdown-it, I think it had better add katex and markdown-it in dependencies not devDependencies

goessner commented 6 years ago

I prefer to leave it to the responsibility of the environment (like mdmath) using markdown-it-texmath and possibly other markdown-it-xxx plugins to care about the proper addition of markdown-it.

Then you can decide to include katex as well, or alternatively another TeX rendering module. markdown-it-texmath is basically designed so, that it should be able to function properly with other rendering libraries (in future) also.

The question dependencies vs devDependencies is discussed controversly here and there.

Please note, as devDependencies is more liberal,

... there is no way to omit modules listed under dependencies.

thanks

wafer-li commented 6 years ago

OK,I see.