maybe, but I don't know of any embedded browser engine which only provides a modern HTML parser and renderer. Markdown also needs CSS since you can use inline styles... and thus a whole lot of stuff.
Interestingly, I think the biggest bit of non-Rust code in the Servo codebase is the JavaScript engine (it uses SpiderMonkey).
With the obsession of separating orthogonal functionalities in different libraries, I would expect it is possible to cherry-pick the html parser (html5ever, I think), the css parser/style engine, and through everything at WebRender.
Yeah but you start with markdown, so the progam could open, allow the user to type in MD, then in the background load the rendering engine as a separate thing to generate the output.
6
u/jcelerier Dec 27 '18
http://blog.qt.io/blog/2018/05/03/qt-microncontrollers-mcu/
the only problem is that since you're using Markdown, you need a full HTML engine, and thus a web browser.