-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for rendering local markdown images in mdv-gui #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for rendering local markdown images in mdv-gui #16
Conversation
🧪 Test Release SummaryAll binaries built and signed successfully! ✅ Version: Artifacts CreatedLinux GUI archivesWindows GUI archivesGUI Checksums (SHA256)Platform Coverage
What was tested
Note: This is a test release. No artifacts were published to GitHub Releases or Homebrew. |
This commit enables the GUI to properly render local image references in markdown files (e.g., ). Changes: - Modified ToHTML() to accept markdown file path parameter - Added processLocalImages() function to convert relative image paths to base64-encoded data URIs - Updated app.go to pass file path to ToHTML() - Updated all test cases to pass empty string for new parameter - Added example markdown file with test images The solution converts local images to data URIs, which are embedded directly in the HTML. This works seamlessly in the Wails webview without requiring file system access from the frontend. Supported image formats: PNG, JPEG, GIF, SVG, WebP, BMP, ICO 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
dc103ea to
1fb605f
Compare
🧪 Test Release SummaryAll binaries built and signed successfully! ✅ Version: Artifacts CreatedLinux GUI archivesWindows GUI archivesGUI Checksums (SHA256)Platform Coverage
What was tested
Note: This is a test release. No artifacts were published to GitHub Releases or Homebrew. |
🧪 Test Release SummaryAll binaries built and signed successfully! ✅ Version: Artifacts CreatedLinux GUI archivesWindows GUI archivesGUI Checksums (SHA256)Platform Coverage
What was tested
Note: This is a test release. No artifacts were published to GitHub Releases or Homebrew. |
This commit enables the GUI to properly render local image references in markdown files (e.g.,
).
Changes:
The solution converts local images to data URIs, which are embedded directly in the HTML. This works seamlessly in the Wails webview without requiring file system access from the frontend.
Supported image formats: PNG, JPEG, GIF, SVG, WebP, BMP, ICO
🤖 Generated with Claude Code