Markdown on the left, the real PDF on the right, updated as you type.
A native desktop app for Omarchy, Wayland desktops and Windows. No browser. No Qt. No Electron.
Download · Quick start · Features · Performance · Building
Note
The repository is private while the app is prepared for its first public release. Each version is built for Linux, Arch Linux and Windows and published as a release.
RayoMD GUI is the desktop app of RayoMD: write Markdown, see the PDF as you type, export it. It runs on its own small toolkit, drawn by its own software renderer: on Linux the program needs only the C library, on Windows only system DLLs. The preview is not an imitation of the PDF but the PDF itself, the bytes the engine just built in memory, drawn by the app's own PDF renderer.
|
A keystroke reaches the preview in about 2 ms in |
The preview shows the PDF Export writes, 0.5/255 from poppler's rendering on average over 51 test pages. |
Follows the current Omarchy theme and font as they change, in the look of Omarchy's own apps. 23 Omarchy themes are built in for other desktops. |
|
A 1.5 MB Linux download and a 1.9 MB Windows download. No browser engine, toolkit or runtime to install. |
Styles, margins, page sizes, PDF themes, tables of contents, page numbers, code colours, PDF/A-3b and PDF/UA-1. |
Untrusted documents, images and fonts are read within work and memory limits; fuzzed, and built with the platforms' exploit mitigations. |
While the repository is private, download the assets with a logged-in
GitHub CLI (gh auth login) or from the
release page.
Omarchy and Arch Linux: the package
gh release download v1.4.0 --repo Butterski/rayomd-gui --pattern '*.pkg.tar.zst'
sudo pacman -U rayomd-gui-1.4.0-1-x86_64.pkg.tar.zst
rayomd-gui notes.mdIt installs the program, its menu entry and its icons.
Other Linux: glibc 2.34 or newer and a Wayland desktop
gh release download v1.4.0 --repo Butterski/rayomd-gui --pattern '*-linux-x64.tar.gz'
tar -xzf rayomd-gui-1.4.0-linux-x64.tar.gz
./rayomd-gui-1.4.0-linux-x64/rayomd-gui notes.mdFor the application menu, put the program on your PATH and copy its menu entry and icons:
install -Dm755 rayomd-gui-1.4.0-linux-x64/rayomd-gui ~/.local/bin/rayomd-gui
cp -r rayomd-gui-1.4.0-linux-x64/share/. ~/.local/share/Windows: rayomd-gui.exe
Download rayomd-gui-1.4.0-windows-x64.zip from the
release page, unpack it and
start rayomd-gui.exe, or drop a Markdown file on it.
Build from source
GCC or Clang and CMake 3.21 or newer, x86-64. The engine is the external/rayomd submodule:
git clone --recursive https://github.com/Butterski/rayomd-gui.git && cd rayomd-gui
cmake --preset linux-release && cmake --build --preset linux-release
build/linux-release/src/rayomd-gui notes.mdWindows and the tests: Building.
| Package | Size, 1.3.4 | For |
|---|---|---|
rayomd-gui-<version>-1-x86_64.pkg.tar.zst |
1,624 KB | Omarchy and Arch Linux: pacman -U |
rayomd-gui-<version>-linux-x64.tar.gz |
1,534 KB | Linux with glibc 2.34 or newer: the program, its menu entry and icons |
rayomd-gui-<version>-windows-x64.zip |
1,935 KB | Windows x64: one rayomd-gui.exe |
The editor is on the left, the PDF on the right. A change goes to the engine at the end of the frame that made it, and what you type while a build runs goes into the next one. Pages that did not change keep their images, and a page with a large picture draws again in about 2 ms. A page far taller than it is wide (a custom 210 × 5080 mm page, 14,400 points, the engine's tallest) is drawn in strips of 2,048 rows, only the ones in view and next to them: its top shows as fast as an A4 page does.
The two panes stay together. A click in the editor shows its line in the preview, marked for a moment by a bar beside it, and a double click on a page puts the caret on the Markdown line that made it. With Sync scrolling (on by default, in the options' Interface section), scrolling either pane brings the other to the same place.
The Markdown shows in the theme's colours as you type: headings, list, quote and table markers, emphasis delimiters, code spans and fenced code (one colour, the fence's language named), links, images and footnotes, formulas, HTML comments, the front matter and, with the Obsidian dialect, wiki links. The font, the characters and their cells stay as they are, and the selection keeps its own colour. Only the lines in view are coloured, and an edit recolours what it changed: a fence typed at the top of a document recolours the lines below it a slice of about 0.2 ms per frame, plain until their colours are known. Syntax colors, in the options' Interface section, turns them off.
Typing helps with the Markdown. Enter continues a list or a quote (- , 1. counting up,
- [ ] , > , at the same indentation) and Enter on an empty item ends it; Tab and Shift+Tab
indent and outdent a list item. Ctrl+I, or the footer's insert button, opens a list at the caret:
page break, table of contents, table, callout (with GitHub's five types), Mermaid flowchart and
sequence diagram, math block, code block, front matter and rule, each on lines of its own with the
caret where you type next. Typing ``` at the start of a line lists the fence languages
the PDF highlights (and mermaid, math), > [! the callout types and, with the Obsidian
dialect, [[ the document's headings and the names of the notes in its vault (![[ the note
names alone); type to filter, Enter or a click picks, Escape closes. An
image dropped on a saved document (PNG, JPEG or SVG) is copied into an images folder beside it,
never over an existing file, and linked at the caret.
| Keys | Action |
|---|---|
Ctrl+O / Ctrl+N |
Open / new document |
Ctrl+S / Ctrl+Shift+S |
Save / save as |
Ctrl+E / Ctrl+Shift+E |
Export the PDF / export to another file |
Ctrl+, |
Show or hide the options |
Ctrl+I |
Insert a page break, table, callout, diagram, math, code, front matter… at the caret |
Enter / Shift+Enter |
New line, continuing a list or quote / plain new line |
Tab / Shift+Tab |
Indent / outdent a list item (elsewhere Tab inserts a tab) |
Up, Down, Enter, Esc |
Move in, pick from, close the list at the caret |
Ctrl+=, Ctrl+-, Ctrl+0 |
Editor text size up, down, back (Ctrl+0 also resets the preview zoom) |
Ctrl+wheel |
Zoom the preview |
| Double click on a page | Put the editor's caret on the line it shows |
Ctrl+Q |
Quit |
Every action that would lose unsaved text asks first. Files dropped on the window open: .md,
.markdown, .txt and .pdf; .png, .jpg, .jpeg and .svg go into the document's
images folder (save a new document first). A reversible RayoMD PDF, exported with its Markdown
source embedded, opens as that source, checked byte for byte.
The open file is followed on disk, so an agent or another editor can write it while you watch
the preview: within a second of a change (a rewrite, or a new file renamed over it), focused or
not, a document without unsaved edits reloads, the caret on its text and the preview built again;
Ctrl+Z brings back the text before the reload. A document with unsaved edits is never replaced:
the status line says the file changed on disk, as it says when the file is deleted.
The engine's export options, in the panel on the right (Ctrl+,):
- Document: the Markdown dialect (GitHub's, or Obsidian's: callouts with titles,
==highlights==,%%comments%%,[[wiki links]]and![[images]]), style (Elegant, Modern, Tech), margins (also custom), page size (A4, A3, A5, Letter, Legal or custom, in landscape too) and a PDF theme file: company fonts, colours, header, footer and cover page. - Embedded notes (Obsidian):
![[Note]]alone on a line prints the note (Embeds: Content) or stays a link (Link); the preview builds again when an embedded note changes on disk. - Vault: the folder embedded and linked notes are found in, by path or by name; by default the document's folder.
- Hide #tags (Obsidian): the note's
#tagsare left out of the PDF. - Auto height: with a custom page size, one long page as tall as its content, for screens.
- Footnotes: at the end of the document, or at the foot of the page of their reference.
- Contents: a table of contents with its depth, headings numbered 1, 1.1, 1.1.1 to a depth,
a new page before each heading of the top levels, page numbers, code coloured as on GitHub, and
```mermaidblocks drawn as diagrams (flowcharts, sequence diagrams, pie charts). - Output: PDF/A-3b, PDF/UA-1, compression, faster image encoding, the Markdown source embedded, URL images (Windows), opening the PDF after export.
- Black text for printing: text, links and code in black, fills and diagrams in light greys, for a black-and-white printer; images keep their colours.
- Linked notes: the export is a book of the note and the notes it links to, 1 to 3 links deep; the status line says how many notes it added and how many it left out.
- Backlinks: with linked notes, each note of the book ends with the notes that link to it.
The options are remembered, with the window's size and the editor's text size.
On Omarchy, Follow Omarchy takes the current theme's colours, its shell.toml sizes and the
Omarchy font, and follows a theme switch as it happens. Elsewhere Automatic follows the
system's light or dark mode (Tokyo Night or Catppuccin Latte), or you pick one of the 23 Omarchy
themes: Catppuccin, Catppuccin Latte, Ethereal, Everforest, Flexoki Light, Gruvbox, Hackerman,
Kanagawa, Last Horizon, Lumon, Lupine, Matte Black, Miasma, Nord, Osaka Jade, Retro 82, Ristretto,
Rose Pine, Solitude, Starship, Tokyo Night, Vantablack and White.
System file dialogs (the desktop portal on Linux, the common dialogs on Windows), the clipboard, input methods such as fcitx5, Compose keys, fractional scaling and server-side decorations where the compositor offers them. Saves replace the file atomically and keep its permissions. On Linux, if the compositor goes away, unsaved text is written to a recovery copy first.
rayomd-gui --snapshot out.png notes.md writes the first complete frame to a PNG and prints
where startup's time went; the end-to-end tests run it on headless compositors.
Measured on 2026-10-20 on Linux with an AMD Ryzen 5 PRO 4650GE in an Arch Linux container, pinned
to six cores, on headless Wayland compositors (medians of three runs; the keystroke rows with the
engine's incremental preview builds, TinyPdf::BuildSession, before: 1.3.4 in the same test;
the editor rows with syntax colours, medians of 12 runs, 1.3.4 in the same runs), and on Windows
on GitHub's runners (the CI runs of 2026-10-19 and 2026-10-20).
| Measure | Result |
|---|---|
Keystroke to the edited page's preview, tester.md (5 KB, 5 pages), median / p99 |
1.7 / 2.7 ms (before 2.6 / 3.2) |
| The same, 8 copies (42 KB, 40 pages) | 1.9 / 2.8 ms (3.2 / 3.8) |
| The same, 70 copies (364 KB, 350 pages) | 3.7 / 5.3 ms (9.3 / 11.0) |
| The same, 700 copies (3.6 MB, 3,500 pages; the build worker's part is 17 ms; p99 is the first keystroke after a whole build) | 19 / 40 ms (75 / 102) |
| One keystroke in a 1 MiB document, editor and drawing, median / p99 | 0.15 / 0.20 ms (1.3.4: 0.17 / 0.20) |
| A frame while the preview / the editor scrolls, 1788×1097 window, 40 pages, median / p99 | 3.1 / 4.0 ms, 3.1 / 3.8 ms (1.3.4: 3.0 / 3.8, 3.1 / 3.7) |
| Syntax colours of a 10 MiB document (363,111 lines): its first scan, or after a fence typed at its top | 85 frames of at most 0.18 ms, 15 ms in all |
| Syntax colours' memory and size | 2 bytes a line (0.8 MiB for 10 MiB) and the lines in view; 48 KB of program |
| Frames on Windows runners | one at each refresh of their 64 Hz display (15.6 ms apart) |
Page 1 of tester.md at 1,200 px, first time / with warm caches |
6.5 / 1.1 ms |
| A 210 × 5080 mm page at 1,200 px (29,042 rows, 15 strips), its first strip / an A4 page whole, new preview thread / all 15 strips | 3.0 / 1.3 / 38 ms |
Start to first frame / to the preview of tester.md, Linux (Weston, Sway) |
10–12 / 30–38 ms |
| The same on Windows runners | 14–29 / 67–161 ms (once 303 ms) |
A keystroke used to wait 80 ms for typing to pause (84 ms in tester.md); a build that is no
longer wanted is now abandoned, so quitting during the 3.6 MB build takes 25 ms. On Windows,
animated scrolling used to wait on a 16 ms timer, which the system clock's 15.6 ms ticks turn
into 31 ms; frames now come at each refresh of the display. A keystroke is quicker with syntax
colours than without them in 1.3.4: each colour's glyphs cover only their own tiles of the
compositor, where a row's text used to span the pane. The tests bench.preview_latency,
bench.typing, bench.scroll and bench.highlight print these numbers (RGUI_SYNTAX_COLORS=0
runs the first three without syntax colours), pdf.golden and pdf.preview_strips the page
renders', win32.frame_pacer the Windows frame rate; --snapshot prints the startup ones.
Note
The PDFs are RayoMD's: its fast Markdown subset, not Pandoc's. What the engine does and does not render is in its README and Native Markdown Support.
- The editor colours a Markdown subset, its rules in
src/ui/markdownhighlight.h: inline syntax never spans lines, indented code and HTML blocks are not recognised, and fenced code takes one colour, not its language's. - Linux needs a Wayland desktop; there is no X11 backend. x86-64 only.
- URL images are fetched on Windows only: the Linux program links no libcurl, so they show their alt text there.
- The interface font is the system's: Omarchy's monospace font on Linux, Cascadia Mono or Consolas on Windows.
The engine is the external/rayomd submodule; clone with --recursive, or run
git submodule update --init after cloning. Engine changes go to the rayomd repository
first; the submodule then moves to that commit.
On Linux (GCC or Clang, CMake 3.21 or newer):
cmake --preset linux-release && cmake --build --preset linux-release && ctest --preset linux-releaseOn Windows, in an MSYS2 UCRT64 shell:
cmake --preset windows-mingw && cmake --build --preset windows-mingw
build/windows/tests/rayomd-gui-tests.exetests/e2e/run_compositor.sh weston|sway runs the app on a headless compositor and checks its
snapshot; ctest runs both when weston and sway are installed. On Arch, linux/pkgbuild builds a
package of the working tree: cd linux/pkgbuild && makepkg -f.
A push to main that changes VERSION runs the Release workflow
(.github/workflows/release.yml), as in RayoMD. It builds the Linux binary on Ubuntu 22.04 (so
it runs on glibc 2.34 or newer), the Arch package and the Windows executable, and publishes them
as the release v<VERSION>, tagged at that commit. A tag v<VERSION> or a manual run of the
workflow publishes the same; other pushes publish nothing (CI builds and tests them).
Read AGENTS.md first: the toolkit's conventions, the rule that the Linux program
needs nothing beyond the C library, the limits every reader of outside data keeps, and how to
build, test and fuzz.
Apache License 2.0; see LICENSE. NOTICE lists the third-party
material, among it the Omarchy theme palettes and icon paths (MIT, third_party/omarchy/).

