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.

Read this as

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