Every block now maps to its own source lines at any depth: quotes inside
quotes, paragraphs, code, quotes and lists inside list items, and each
table row. A list item's highlight covers only its own text, not its
nested items, and a parent quote is not highlighted with its children.
A Parser subclass marks each block in the rendered HTML; the output is
otherwise identical to render().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Editing a block highlights its rendered copy in the preview for a moment
(and scrolls it into view); clicking a block in the preview puts the
cursor at its source and briefly marks that source behind the editor.
Top-level blocks and list items each map to their own source range.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FORWARDED_ALLOW_IPS (default 127.0.0.1) lets the app sit behind a proxy that
reaches it over a Docker network instead of loopback; README shows the
compose.override.yml for that. deploy.sh <name> picks HOST_<NAME> from the
gitignored .deploy.env and leaves a server's compose.override.yml alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Syntax Highlighting (/syntax): highlight.js tokens rendered with VS Code
(Dark/Light Modern, One Dark Pro, Monokai, Dracula, GitHub) and Android
Studio (Darcula, Dark, IntelliJ Light) colors; copy as rich text (VS Code
clipboard HTML), download RTF, share. Format via Prettier/sql-formatter
(lazy-loaded), the JSON printer, or built-in whitespace-only formatters
for brace languages, Python and XML.
- Markdown: Guide dialog, source next to rendered output, with Insert.
- Pastes created by Share count as unread on the Pastebin nav badge.
- Paste view: Open in menu built from registry opensPaste tools.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creations are logged in SQLite (IP as an HMAC with a per-install key, kept
24 h), so limits survive restarts and deleting a paste doesn't refund it.
The site-wide cap also bounds storage (~5 GB worst case), replacing the
live-storage cap. Adds an Open file button to the paste page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Single FastAPI container with a registry-driven single-page front end, so
new tools are one module plus one registry entry. Runs as one container behind a reverse proxy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>