Libraries 2026
Quillon
A structured document model for Elixir, with rich text that stays data.
Quillon is a document representation for Elixir: a tree of typed nodes with rich-text marks, in the spirit of ProseMirror, Tiptap, and Slate, but as plain Elixir data. A document is a tuple tree — {type, attrs, children} — which means it can be stored, diffed, transformed, and tested without a browser.
Blocks, inlines, marks
Containers hold blocks, blocks hold inlines, and text nodes carry marks. Marks are either simple (:bold, :italic, :code) or attributed ({:link, %{href: ...}}, {:mention, %{id: ...}}), so a mention is not a special node type with its own parsing rules.
Blocks include paragraphs, headings, images, tables, rows, and grids. row and grid are layout containers, which means a two-column callout is expressible in the document model rather than in the renderer.
Layout as data
Every block accepts layout and styling tokens: alignment, width, spacing, indentation, font size and weight, colour, background, border, radius, shadow, opacity. These are tokens, not CSS strings. The renderer decides what spacing: :lg means, which keeps documents portable across an editor, an export, and a PDF.
The unglamorous parts
Selection and the key algorithms are specified and implemented: mapping a selection through edits, splitting and joining nodes, normalising the tree after a delete, and rendering to HTML. Those are the operations that decide whether an editor feels solid, and they are easier to get right in a library than in a LiveView.
Quillon is published on Hex as quillon.