Technical documentation, README files, and software notes are overwhelmingly written in Markdown. While terminal utilities like glow and full web browsers render markdown effectively, developers often demand a lightweight, standalone GUI viewer that does not require heavy Electron runtimes. Inlyne is a high-performance, GPU-accelerated markdown viewer written in Rust that leverages the wgpu graphics API to render richly styled markdown documents with instant responsiveness and live reloading.
Why Inlyne Outperforms Conventional Markdown Viewers
Most desktop markdown previewers rely on embedded Chromium or WebKit rendering engines, consuming hundreds of megabytes of RAM. Inlyne bypasses web technologies entirely, offering distinct advantages for Linux workflows:
- Hardware-Accelerated Rendering: Built on Rust and
wgpu, Inlyne executes text layout and vector geometry directly on your graphics card (Vulkan or OpenGL), delivering buttery-smooth scrolling. - Zero-Latency Live Reloading: Inlyne monitors the target file with native filesystem watchers (
inotify). Saving changes in Neovim, Emacs, or VS Code updates the rendered preview instantaneously without losing your scroll position. - Native Code Block Syntax Highlighting: Code listings inside fenced code blocks are automatically parsed with syntax themes matching contemporary code editors.
- Inline Media and SVG Support: Displays raster images, web graphics, and SVG vectors natively within document flow.
How to Install Inlyne on Linux
Inlyne is distributed across several package repositories and can also be compiled directly via Cargo.
Method 1: Install via Cargo (Universal)
Ensure you have Rust and essential graphics libraries installed on your distribution:
# Debian / Ubuntu dependencies
sudo apt update && sudo apt install -y build-essential libfontconfig1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev
# Compile and install Inlyne
cargo install inlyne
Method 2: Install on Arch Linux
Arch Linux users can install Inlyne directly from the Arch User Repository (AUR):
yay -S inlyne
Method 3: Download Pre-Compiled GitHub Release Binary
If you prefer a standalone executable without Rust build tools, fetch the pre-compiled binary from the official GitHub releases:
curl -s https://api.github.com/repos/trimental/inlyne/releases/latest | grep "browser_download_url.*x86_64-unknown-linux-musl.tar.gz" | cut -d : -f 2,3 | tr -d \" | wget -qi -
tar -xzf inlyne-*.tar.gz
sudo mv inlyne /usr/local/bin/
How to View Markdown Files with Inlyne
Launch Inlyne by passing any markdown file path as an argument from your terminal:
inlyne README.md
Inlyne immediately opens a dedicated desktop window displaying the styled document. As you edit and save README.md in your editor of choice, the Inlyne window automatically refreshes its contents in real time.
Essential Keybindings and Navigation
| Keybinding | Action |
|---|---|
j / Down Arrow |
Scroll down incrementally. |
k / Up Arrow |
Scroll up incrementally. |
Ctrl + d / Page Down |
Scroll down by half a page. |
Ctrl + u / Page Up |
Scroll up by half a page. |
g / Home |
Jump directly to the top of the document. |
G / End |
Jump directly to the bottom of the document. |
q / Esc |
Quit Inlyne. |
Customising Themes and Configuration
Inlyne supports custom themes and styling options via a configuration file located at ~/.config/inlyne/inlyne.toml. You can set your preferred theme, font family, and code block styling:
# ~/.config/inlyne/inlyne.toml
theme = "dark" # Options: "dark", "light", or custom hex values
[font]
regular_font = "Inter"
monospace_font = "JetBrains Mono"
[misc]
key_bindings = true
You can also override themes dynamically from the command line using flags:
inlyne --theme light documentation.md