3 ms·
Markdown by design allows arbitrary HTML, so every markdown viewer at a minimum needs to support the entire HTML, CSS, etc. DOM. It's easiest (and likely more
by qbasic_forever 5y ago
Markdown by design allows arbitrary HTML, so every markdown viewer at a minimum needs to support the entire HTML, CSS, etc. DOM. It's easiest (and likely more secure) to use something like Chromium.
- turnsout 5y agoI get that, and I'm not disagreeing. However, two points: 1. I think writing-focused Markdown editors should not feel obligated to render arbitrary HTML in their previews. The format may support it, but the editor doesn't need to—one of the great things about Markdown is that your editor can be anything from vi to VSCode. 2. On the Mac, there is an extremely easy API to display a WebView (WKWebView), which would cut the size of this executable to roughly 1/100th of its current size, drop the memory usage, and reduce energy consumption. You can even keep most of the business logic in JavaScript if you want.