A minimalist DOM in 50 LoC
Is there a better name for this than "DOM"? A notation for a tree of rectangles, often containing text, to be rendered to screen and united with mouse events.
Rects contain either text or rows/cols of other rects. Other attributes: fg, bg, margin. Margin is margin-top or margin-left depending on whether the rect contains rows or cols.
No inline styling yet (bold, span, etc.), that feels like a separate concern.
A Lua-based Markup Language
Demo of a structured text editor where you can edit multiple buffers arranged in nested rows/columns.
https://codeberg.org/akkartik/luaML.love
Doesn't save what you type in yet. This is just a demo for playing with.
I have no idea what attributes to include besides fg/bg/margin. So get in touch if this sparks ideas/suggestions.
This toot is dedicated to @nff.