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

slow build for vuepress serve when using markdown-it-texmath #13

Closed
songololo opened this issue Feb 23, 2019 · 6 comments
Closed

slow build for vuepress serve when using markdown-it-texmath #13

songololo opened this issue Feb 23, 2019 · 6 comments

Comments

@songololo
Copy link

songololo commented Feb 23, 2019

I am not sure if this would be a vuepress or markdown-it-texmath issue. Vuepress is a static site generator that uses markdown-it to render HTML content.

The vuepress dev server starts-up really slowly when using markdown-it-texmath, though regular builds (for production) are not as slow. It seems that they are using webpack-dev-server under the hood. After the initial build, subsequent refreshes are quicker, i.e. they seem to be using some sort of cache.

I'm not sure how to go about debugging this, but any ideas on what the hold-up might be or suggestions for where to look?

@songololo
Copy link
Author

I've created a minimal example here: markdown-katex-debug.

And opened a similar issue in the katex repo:
KaTeX/KaTeX#1865

@janvorisek
Copy link

I ran into the same issue. Build almost freezes with webpack-dev-server using default vuepress dev. Finishes after 30 min.

@songololo
Copy link
Author

@janvorisek I'm not aware of any solutions to above but the new vuepress-plugin-mathjax might work for your purposes?

@janvorisek
Copy link

@songololo Yeah that one is working, but i personally prefer KaTeX as it's faster, resulting math is partially selectable and it supports tagging using \tag.

I just found out that mathjax supports at least equation numbering which I need so thank you anyway :-)

Hopefully someone will fix the issue soon so we can switch to KaTeX.

@goessner
Copy link
Owner

goessner commented Oct 4, 2019

I do not use vuepress and don't intend to do so in near future.

So I definitely need your help here with that issue ... some new insights ?

Thanks

@goessner
Copy link
Owner

goessner commented Apr 5, 2020

Closed due to inactivity ... can be reopened again.

@goessner goessner closed this as completed Apr 5, 2020
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

3 participants