Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wafer-li opened this issue Jan 13, 2018 · 2 comments
Closed

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

wafer-li opened this issue Jan 13, 2018 · 2 comments

Comments

@wafer-li
Copy link

wafer-li commented Jan 13, 2018

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

@goessner
Copy link
Owner

goessner commented Jan 13, 2018

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
Copy link
Author

OK,I see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants