Skip to content
worth noting Coding

Simon Willison releases LaTeX renderer and shares how he built it using Claude Code

only one source so far

Simon Willison released the web tool LaTeX renderer, which renders documents from source stored in a URL fragment. He also provided the prompts for Claude Code, a list of libraries and a requirement for XSS protection.

Simon Willison built the web tool LaTeX renderer using Claude Code. It loads a document from the URL fragment after the # character, allowing it to be shared via a link or bookmarked. It supports compression with a dictionary tailored for LaTeX, switching between source text and the rendered document, and loading source from a URL or from Gist.

The author published the sequence of prompts and listed the libraries used: Pako 2.1.0, MathJax 4.1.3, faster-latex 0.3.1 and DOMPurify 3.4.16. The prompts also included a requirement for XSS protection using an isolated iframe environment with the sandbox attribute, following the approach used in his earlier tool. The published requirement does not in itself demonstrate that the security of the result has been verified.

What changed

Why it matters

Users can share a rendered document via a link and then switch to editing its source. Developers gain a concrete example of prompts for Claude Code that combine document storage in a URL, compression, rendering and requirements for secure input handling.

Two audiences, two different impacts

What this means

01

For individuals

When working with LaTeX documents, you can use a link that preserves the document source and lets you switch between editing and viewing it.

What to do Use your own sample document to try sharing via a link and switching between the source and the rendered view.
More practical updates →
02

For a business

Development teams gain a concrete reference for designing a similar web editor; however, they must independently verify the protection when processing external content.

Development
What to decide Before adopting this approach in a company tool, verify the protection against XSS when loading external documents.
More business impacts →
Claude Code DOMPurify LaTeX MathJax XSS

Check the original

Event sources

only one source so far · 1 publisher, 1 independent. We count feeds from the same owner only once.

1
Simon Willison — AI tag (leading independent LLM commentator) community signal · first detected LaTeX renderer