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:
[x] Typed webworker RPC
[x] Dynamic webworker compilation in dev-mode (?) awkward in practice
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:
Dynamic webworker compilation in dev-mode (?)awkward in practice