// How an attachment is drawn, decided in one place for the card and the editor. /** Whether a file is shown as a picture rather than as a chip to download. * * Every `image/` type except SVG. An SVG is a document that can carry its own * script, so neither surface serves one to render: the server sends it as a download * (#1981) and the desktop's blob scheme as opaque bytes, where an `` of it would * only ever show broken. */ export function rendersInline(mime: string): boolean { return mime.startsWith("image/") && mime !== "image/svg+xml"; }