Simon Willison Builds a Shareable LaTeX Renderer via URL Fragments
Willison built a web-based LaTeX renderer that treats a URL’s fragment hash as source code, making every formula or document a bookmarkable link. The tool supports a compression prefix using a custom dictionary tuned for LaTeX, and falls back to an inline editor when no fragment is present. Rendering is handled through MathJax 4.1.3 and faster-latex 0.3.1, with Pako 2.1.0 for compression and DOMPurify 3.4.16 for sanitization. The project was generated by Claude Code (Opus 5.5 Extra) from a handful of iterative prompts.
Security is handled by running the rendered output inside a sandboxed iframe, a pattern Willison borrowed from his earlier SVG-in-Markdown tool. The renderer also accepts LaTeX from an external URL or Gist, reusing the same loading mechanism. The whole thing lives in his personal tools repository.
The project was sparked by Tiny Little Office, a suite of single-file web editors by Paul Ford and Aboard Foundary that embeds document state in the URL fragment and ships an llms.txt file so AI agents can construct valid document links. Willison’s LaTeX tool follows the same philosophy: no backend, no accounts, just a link that renders.
Read the full article
Continue reading at Simon Willison →This is an AI-generated summary. Read the original for the full story.