Skip to content

Add Mermaid Markdown rendering and standalone image viewer - #9

Merged
notsuhas merged 1 commit into
mainfrom
feat/markdown-mermaid-image-viewer
Sep 20, 2026
Merged

notsuhas merged 1 commit into
mainfrom
feat/markdown-mermaid-image-viewer

Conversation

@notsuhas

Copy link
Copy Markdown
Owner

Adds Mermaid diagrams to Markdown, a standalone image viewer, index.md landing pages, and AVIF MIME support.

  • Mermaid renders locally with a locked strict policy, enlarge/close controls, and readable source fallback on errors.
  • Images support zoom, fit, open original, and download. Existing content access checks stay in place.
  • No image processing, caching redesign, pinpoint comments, or new infrastructure.

Verification: API tests (1,349), web tests (548), script/npm tests, typecheck, lint, formatting, Go tests, web build, and content-worker dry run passed. Separate source review found no blocking issues.

Browser checks used the built app and production CSP with isolated local fixtures: image zoom/reset/download, Markdown diagrams, invalid-source fallback, strict-policy cases, and enlarge/Escape behavior. Desktop and 390px layouts were inspected; a dialog overflow found on mobile was fixed and rechecked. Physical devices and live production were not tested. The fixture omits realtime sockets, so realtime collaboration was not exercised.

@notsuhas
notsuhas merged commit 28ee934 into main Sep 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant