Skip to content

Fix embedded Mermaid rendering in macOS releases - #60

Merged
aniongithub merged 1 commit into
mainfrom
aniongithub-fix-docx-mermaid-release
Oct 15, 2026
Merged

aniongithub merged 1 commit into
mainfrom
aniongithub-fix-docx-mermaid-release

Conversation

@aniongithub

Copy link
Copy Markdown
Owner

Summary

  • copy the standalone Mermaid browser bundle into webui/dist during the existing WebUI build
  • load Mermaid from the embedded WebUI filesystem for both PDF and DOCX rendering while preserving development and sidecar fallbacks
  • discover supported Chrome-family browsers under both /Applications and ~/Applications on macOS
  • add focused tests for embedded Mermaid discovery and macOS browser candidates

Validation

  • npm run build --prefix webui
  • go test ./internal/share
  • go vet ./...
  • go test ./...
  • go build -o /tmp/mind-map ./cmd/mind-map/

Fixes #59.

This fixes the installed-release regression discovered after #58.

Copy the Mermaid browser bundle into the embedded WebUI assets, use it for PDF and DOCX rendering, and discover macOS browsers installed under the user Applications directory.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 08c5eeb6-3c1a-4fe6-acfe-f836fa313c99
@aniongithub
aniongithub merged commit 00105ee into main Oct 15, 2026
1 check passed
@aniongithub
aniongithub deleted the aniongithub-fix-docx-mermaid-release branch October 15, 2026 18:15
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.

DOCX Mermaid diagrams fall back to code in macOS releases

1 participant