Mojiban (文字盤)
Rich text rendering library for pleme-io applications. Converts markdown, code, and structured text into styled glyph runs for GPU rendering via garasu.
Components
| Module | Purpose |
|---|---|
markdown |
pulldown-cmark → styled spans (bold, italic, code, links) |
highlight |
tree-sitter syntax highlighting for code blocks |
span |
RichLine, StyledSpan, TextStyle — styled text primitives |
Usage
[]
= { = "https://github.com/pleme-io/mojiban" }
use ;
let lines = parse;
let code = new.highlight;
Build