marp-team / marp-react

[INACTIVE] Marp renderer component for React
https://marp-react.netlify.com/
MIT License
19 stars 3 forks source link

Add MarpWorker renderer to support rendering in Web Worker #1

Closed yhatt closed 5 years ago

yhatt commented 5 years ago

MarpWorker renderer allows using Web Worker to render Marp.

The most conversion logic is put into a worker, so we can provide non-blocking UI. In addition, the size of JavaScript for the browser context would get a minimum.

Moreover, MarpWorker has a simple but clever queue for rendering. The renderer keeps blazing-fast preview even if you typed in fastly in a large Markdown.

This implementation is ported from a tech demo of Marp Web. We would migrate Marp Web to React if MarpWorker will get working stably.