Skip to content

v267.9.0 — SVG listing with --include-svg

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 07:48
· 4 commits to main since this release

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 (![logo](logo.svg)) keeps working unchanged.

Added

  • --include-svg flag. Tracks .svg files in directory mode; a single
    .svg path 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=1 serves the raw bytes with
    Content-Disposition: inline and an mtime-based ETag (If-None-Match →
    304).
  • Markdown embedding keeps working. An <img> inside markdown
    advertises image/svg+xml in its Accept header; a top-level navigation
    does not. Tracked files still serve raw bytes to image requests instead
    of the wrapper page, so ![logo](logo.svg) renders 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.