Liu Terminal markdown viewer. Render .md files in-terminal with live preview, syntax highlighting, and GitHub-style formatting.
Read READMEs, design notes and agent output inside Liu — styled rendering with images, tables, task lists, wikilinks and code blocks, plus a raw-source toggle and in-document find.
Under rewrite. Parser and renderer live in src/ui/markdown/ (md_parse.c, md_render.c, md_image.c, md_graph.c, md_math.c, md_diagram.c). The viewer integration is in src/ui/filebrowser.c — expect AST shapes and image pipelines to change.
Click any .md or .markdown file in the file browser. Liu parses the buffer in-place (AST slices point into the loaded file text), renders glyphs through the same terminal font atlas, and lays out blocks with smooth pixel scrolling.
Toggle raw mode to edit the source in a line-based editor with the same find/replace machinery as code views. Unsaved edits mark the buffer modified until you write back to disk.
The native parser also supports YAML frontmatter (including title, tags and aliases), definition lists, footnote definitions and inline footnotes, ==highlight==, ^superscript^, ~subscript~, <details> blocks, and a native subset of Mermaid diagrams. Raw HTML is shown as dimmed monospace text; scripts are not executed.
Graph View (Vault) or Graph Current Folder builds a force-directed graph of markdown files — wikilinks, tags and orphan filters are tunable from the graph settings panel. The layout worker runs asynchronously so large vaults do not freeze the UI.
Türkçe · 简体中文 · 한국어 · Español · Deutsch · Italiano · Français · 日本語 · العربية