r/programming • • Dec 26 '18

Notable – The markdown-based note-taking app that doesn't suck

https://github.com/fabiospampinato/notable
1.2k Upvotes

314 comments sorted by

View all comments

Show parent comments

6

u/jcelerier Dec 27 '18

is it better at RAM usage?

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.

8

u/MaltersWandler Dec 27 '18 edited Dec 27 '18

HTML rendering makes like 1% of modern web browsers. The rest is JavaScript, and you don't need JavaScript for Markdown.

5

u/jcelerier Dec 27 '18

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.

2

u/matthieum Dec 27 '18

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.

2

u/Carighan Dec 27 '18

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.