Show Markdown images as links on the dashboard, never loaded #195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "md-images-as-links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
The dashboard's small Markdown renderer (
_render_markdown, used for the operator guide and the What's new release notes) didn't know images, soshowed as a stray "!" followed by a link. 1.0.14-beta.5's notes carry two pictures, so a device viewing them saw exactly that.Now an image becomes a link labelled "Picture: alt" (or "Picture: untitled") that opens the picture. The page still never loads anything from off the device: there is no
<img>. As for links, onlyhttp://,https://and/URLs become links; ajavascript:ordata:image keeps its label as plain text.Checklist
test_web.pycover the renderer and the notes page. In the full suite, 1,741 pass; the 5test_web.pypotfile-import tests fail locally exactly as onmain(local werkzeug), so CI is the check for those.docs/developer/updates-setup.mdsays how images in the notes show.Release impact
kestrel_pipackage only.Notes for review
Devices pick this up with the next release; until then, beta.5's notes on the dashboard keep the "!" in front of the two picture links.
🤖 Generated with Claude Code