Repository navigation
SVGs were only ever visible as images referenced from markdown. With
--include-svg they become first-class citizens of the preview: tracked,
listed in the sidebar, and opened as a wrapper page like PDFs — while plain
markdown embedding () keeps working unchanged.
Added
--include-svgflag. Tracks.svgfiles in directory mode; a single
.svgpath is accepted in single-file mode without the flag. Clicking one
renders a centered image over the raw bytes inside the regular shell —
sidebar, themes, source view and live reload behave like a markdown page
(the SVG text feeds the source view).?raw=1serves the raw bytes with
Content-Disposition: inlineand an mtime-based ETag (If-None-Match →
304).- Markdown embedding keeps working. An
<img>inside markdown
advertisesimage/svg+xmlin its Accept header; a top-level navigation
does not. Tracked files still serve raw bytes to image requests instead
of the wrapper page, sorenders identically whether
or not the file is tracked. Untracked SVGs serve as plain images from
disk as before.
Fixed
- Watcher events for image files are now filtered to writes and removals.
Read activity from serving a tracked SVG used to trigger a refresh,
which re-read the file, which triggered the next refresh — an endless
loop per request.