MD Viewer v0.2.0
Security
- XSS fix: Added DOMPurify to sanitize markdown HTML before rendering
- FS scope: Restricted Tauri filesystem access from
** to user directories only
Robustness
- Error handling for file operations (open & drag-drop)
- Fixed drag-drop event listener race condition
- Clipboard write failure handling
- Paste handler now accepts any text (not just
#-prefixed)
- Drag-drop validates file extensions (.md, .markdown, .txt)
- Duplicate heading IDs resolved with counter suffix
- HTML-escaped language labels in code blocks
- Cross-platform path separator handling
Accessibility
- ToC items are now keyboard-navigable buttons
- Toolbar buttons have aria-label attributes
- Progress bar has proper ARIA role and attributes
- Scroll-spy throttled with requestAnimationFrame
Testing
- Added 168 unit tests with Vitest + Testing Library
Install
brew tap MichaelZuo-AI/tap
brew install --cask md-viewer