Gtk+Adwaita Markdown Editor in ~600 lines

Lobsters Hottest Tools

Summary

A compact GTK+Adwaita split-view Markdown editor implementation in about 600 lines, using a GTK WebView and CDN-loaded marked.js and KaTeX. It serves as a prototype inspired by Apostrophe to demonstrate how easy building such apps has become.

<p>If you need a small self contained split view markdown editor (uses a gtk webview, requires an internet for marked.js+katex from a cdn) in GTK+Adwaita.</p> <p>By the way I know about <a href="https://gitlab.gnome.org/World/apostrophe" rel="ugc">Apostrophe</a> and actually it was the main inspiration for this. I am working on a larger GTK app and I want more software with decent Markdown rendering. This gist is just a small self contained prototype to show off that building this kind of app has become fairly easy today.</p> <p><a href="https://lobste.rs/s/fl7dcm/gtk_adwaita_markdown_editor_600_lines">Comments</a></p>
Original Article

Similar Articles

markdown-svg-renderer

Simon Willison's Blog

A markdown rendering tool that supports live preview, table and code block formatting, and special handling for SVG code blocks with inline preview and tabbed code view.

Adaptive Markdown

Reddit r/artificial

Adaptive Markdown is an open-source document format/viewer that uses coding agents to make documents interactive, enabling live workspaces for tasks like academic reading, note-taking, and automated workflows.