question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

markdown-it: some sort of clash between katex and webpack-dev-server

See original GitHub issue

I’m using Vuepress (a static site generator) to parse markdown to html.

It uses markdown-it for markdown parsing. When I try to use plugins for katex, some sort of issue arises which causes the webpack-dev-server to launch incredibly slowly, as in around 30+ minutes.

Here is a minimal example repo markdown-katex-debug.

The same issue doesn’t happen with production builds (also via webpack).

I’ve tried various katex flavoured plugins, and they all seem to cause the same behaviour: markdown-it-texmath @iktakahiro/markdown-it-katex @neilsustc/markdown-it-katex @mathssyfy/markdown-it-katex

(Note, the original markdown-it-katex is no longer maintained, hence the proliferation of forks…)

Any ideas on what the source of the issues might be and how, in general, markdown-it implementations might proceed so as not to clash with webpack-dev-server / vuepress?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinbarabashcommented, Mar 17, 2019

Wow, that’s really slow. 😞 It is mostly like an issue with the plugin itself and not with katex itself as katex is pretty fast at rendering things. I suggest opening tickets against the plugin repos, they should be able to better determine what the issue is. 🤞

0reactions
songololocommented, Mar 16, 2019

@kevinbarabash it was quite slow, I seem to recall in the region of 30m.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · waylonflinn/markdown-it-katex - GitHub
Update to KaTeX v0.10.2? ... What is the status of this repo? ... ProTip! Type g p on any issue or pull request...
Read more >
markdown-it-katex | Yarn - Package Manager
KaTeX is a faster alternative to MathJax. This plugin makes it easy to support in your markdown. Need convincing? Check out the comparative...
Read more >
markdown-it-katexx - npm
KaTeX is a faster alternative to MathJax. This plugin makes it easy to support your markdown. Need convincing?
Read more >
Jest: SyntaxError: Cannot use import statement outside a ...
I am having an issue with Jest when it comes to testing certain components using Babel, Typescript, React, and Jest. While testing a...
Read more >
CDSW-web Notice - Cloudera Documentation
Similarly, fulfilling a license's compliance requirements for a particular form of distribution is not an admission that the software is in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found