markdown-svg-renderer
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Very little practically, it is one developer's self-hosted Markdown preview tool, useful mainly as inspiration for browser-side SVG rendering with Pyodide.
Simon Willison built a tool called markdown-svg-renderer that displays Markdown text with a live preview, fed by pasted text or a URL to a file or GitHub Gist. Its special trick is handling SVG code blocks, a way to draw images with text, by showing both the picture and a tab to view the code. It can also show those images as PNG, JPEG, WEBP or AVIF files, and even short MP4 videos made from animated SVGs. It runs entirely in the browser, so no servers are involved.
This is a small open-source-style tool from blogger Simon Willison, not a product with a business model, pricing or users. It renders Markdown files or GitHub Gists in the browser, with tabbed views for SVG images and their source code. The competitive risk is nil; its value is as a demonstration of running Python (via Pyodide and service workers) fully client-side. Teams exploring browser-only apps may find the approach instructive.
markdown-svg-renderer is a server-side-capable Markdown renderer, demonstrated running the full Datasette Python app in-browser via Pyodide and service workers. Input accepts pasted text, a `?url=` query parameter pointing at a CORS-enabled file or Gist, with legacy `#url=` links redirecting. Fenced SVG blocks render with tabbed views: Rendered, PNG, JPEG, WEBP, AVIF, and Code, plus an MP4 tab using ffmpeg.wasm for animated SVGs. Heading anchors, tables and code blocks are supported.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
markdown-svg-renderer Simon Willison Datasette Pyodide ffmpeg.wasm GitHub Gist Opus 4.8
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.