atom-community / markdown-preview-plus

Markdown Preview + Community Features
https://atom.io/packages/markdown-preview-plus
Other
370 stars 85 forks source link

Markdown-it latency improvements #497

Closed lierdakil closed 4 years ago

lierdakil commented 4 years ago

This moves markdown-it code into webworker. This decreases UI latency since the bulk of the work is moved to a separate OS thread.

However, highlighting can't be moved to an isolated environment since it uses Atom API. Current implementation based on TextEditor can be rather slow, so older atom-highlights-based code is reintroduced.

TODO: