Skip to content

v.1.5.2

Latest

Choose a tag to compare

@byteuser1977 byteuser1977 released this 29 May 09:20

Release v1.5.2

Release Date: 2026-05-28
Tag: v1.5.2
Previous Version: v1.5.1


πŸŽ‰ Release Highlights

🌐 Complete Internationalization (i18n) System

Introducing full multi-language support with automatic detection and dynamic switching:

  • English & Chinese (Simplified) β€” Built-in language packs with auto-detection
  • Desktop Menu Localization β€” All Electron menus fully localized
  • Mobile Menu Localization β€” Complete Capacitor sidebar with language switcher
  • Dynamic Switching β€” Change language anytime without restart; UI updates instantly
  • Cross-process Sync β€” IPC bridge ensures menu and UI stay in sync

πŸ”§ Enhanced PDF Export Pipeline

Continued improvements from beta testing:

  • Auto Theme Style Extraction β€” Automatically extracts and injects current theme styles
  • Custom Print Style Support β€” Advanced CSS injection for specialized export needs
  • Unified Plugin Style Management β€” Math & Mermaid plugins self-manage export styles
  • Smart Error Recovery β€” Dynamic plugin skipping during export failures

🎨 Rendering Optimizations

  • Optimized HTML Structure β€” Better compatibility with external tools
  • Conditional Base Styles β€” Improved performance when using custom themes
  • Fixed Custom Theme Export β€” Resolved Chromium CSSOM serialization issues

πŸ“± Mobile Platform Fixes

  • Fixed Media Query β€” Corrected responsive behavior on mobile devices

✨ New Features

Internationalization (i18n) System

Core Architecture

  • Multi-language Engine (src/renderer/i18n/index.ts)
    • English (en) and Simplified Chinese (zh-CN) support
    • Auto-detect system locale at startup
    • localStorage persistence for user preference
    • Dynamic locale switching with real-time UI refresh

Desktop Integration

  • Electron Menu Localization (src/main/index.ts)
    • All menus: File, Edit, View, Theme, Help
    • Sub-menus: Undo/Redo/Cut/Copy/Paste/SelectAll, Zoom/Fullscreen
    • IPC channel set-locale for renderer β†’ main process sync
    • Custom theme names preserved (no forced translation)

Mobile Integration

  • Capacitor Sidebar Localization (src/renderer/main.ts, src/renderer/index.html)
    • Complete sidebar menu with updateMobileMenuI18n() function
    • Language selector with one-click switching
    • Toast messages: Saved, Save failed, etc.
    • Theme/plugin lists auto-update on language change

Cross-Process Bridge

  • IPC Synchronization (src/preload/index.ts)
    • Exposed setLocale() in ElectronAPI interface
    • Main process rebuilds menus on locale change
    • Capacitor-compatible setLocale() for mobile

Supported Languages

Code Language Auto-detection
en English Default
zh-CN Simplified Chinese System locale contains zh

πŸ”§ Improvements

PDF Export Pipeline (Continued from v1.5.1)

Auto Theme Style Extraction

  • Automatically extracts current theme styles when exporting
  • Injects theme CSS into exported HTML/PDF documents
  • Ensures visual consistency between editor preview and exported files

Unified Plugin Style Management

  • Math Plugin (math-plugin.ts):
    • Added clipboard/export/rendering style configuration fields
    • Self-manages export styles through configuration object
  • Mermaid Plugin (mermaid-plugin.ts):
    • Added unified style configuration fields
    • Dynamic retrieval from plugin configuration
    • No more hardcoded style handling

Enhanced Error Recovery

  • Dynamic plugin skipping during export (instead of hard-coded exclusions)
  • Graceful degradation when individual plugins fail
  • Better error logging and user feedback

Editor Core & Rendering

  • Wrapped getLiveHTML() output in <div id="write"> container for better structure
  • Optimized rendering: only apply base element styles when not using custom themes
  • Fixed custom theme print CSS extraction to avoid Chromium CSSOM serialization issues

Mobile Platform

  • βœ… Fixed missing screen type in media queries (mobile.css)

πŸ—‘οΈ Removed


⚠️ Important Notices

πŸš€ VSCode ColaView Extension

New companion VSCode extension available for seamless integration:

πŸ”— vscode_colaview

What is vscode_colaview?

  • VSCode extension to view and edit ColaMD-rendered Markdown files
  • Real-time preview of math equations and Mermaid diagrams
  • Seamless integration with your existing VSCode workflow
  • Perfect complement to the ColaMD desktop application

Why use it?

  • Preview ColaMD content without leaving VSCode
  • Maintain consistency between ColaMD desktop and code editor
  • Enhanced productivity for developers working with Markdown + rich content

πŸ“¬ Contact & Support

Need help? Want to contribute? Have feedback?

πŸ“± Feishu (Lark) Contact: Scan the QR code below to add the project maintainer:

Feishu QR Code

Contact: ζ―”η‰Ήε€§δΊΊ (Byte Chain)


πŸ“¦ Installation & Upgrade

From Source

# Clone the repository
git clone https://github.com/byteuser1977/ColaMD-extend.git
cd ColaMD-extend

# Checkout v1.5.2
git checkout v1.5.2

# Install dependencies
npm install

# Run development mode
npm run dev

# Build for production
npm run build

Download Pre-built Binaries

Visit the Releases page to download pre-built binaries for your platform:

  • macOS (.dmg) β€” Intel + Apple Silicon
  • Windows (.exe) β€” Installer + Portable
  • Linux (.AppImage, .deb) β€” Universal + Debian/Ubuntu
  • Android (.apk) β€” Via Capacitor 6
  • iOS (`.ipa**) β€” Via Capacitor 6 (requires TestFlight/App Store distribution)

Using Custom Themes

# Option 1: Place theme file manually
cp your-theme.css ~/.colamd/themes/

# Option 2: Import via ColaMD UI
# Open ColaMD β†’ Theme β†’ Import Theme β†’ Select your .css file

Available themes can be downloaded from the themes/ directory or the dedicated ColaMD-themes repository.


πŸ”„ Migration Guide (from v1.5.1)

For Desktop Users

No breaking changes. Simply update to v1.5.2:

  • Your existing settings and themes are preserved
  • New i18n features are automatically available after update
  • Language auto-detects based on system locale; can be changed manually
  • No configuration changes required

For Mobile Users

If you were using v1.5.1:

  • Direct update recommended (no need to uninstall)
  • New features: Full i18n support, improved export pipeline, bug fixes
  • Your data is preserved (stored in app sandbox)

For Theme Developers


πŸ“Š Statistics

Code Changes

  • Files Changed: 30+
  • Lines Added: ~1,800+
  • Lines Modified: ~600+

New Features

  • Internationalization system: Complete i18n architecture
  • Supported languages: 2 (English, Chinese Simplified)
  • Localized components: Desktop menus, Mobile sidebar, Toast messages

Test Coverage

  • Bug Fixes: 10+
  • Platform Fixes: Mobile media query
  • Documentation: Updated

Supported Platforms

  • βœ… macOS (Intel + Apple Silicon)
  • βœ… Windows (x64)
  • βœ… Linux (x64, ARM64)
  • βœ… Android (ARM64, ARMv7)
  • βœ… iOS (ARM64)

πŸ™ Acknowledgments

Special Thanks To

  • Internationalization Community β€” For i18n best practices and patterns
  • Mermaid.js Team β€” For the excellent diagram rendering library
  • KaTeX Team β€” For the fast math typesetting engine
  • Capacitor Team β€” For enabling cross-platform mobile support
  • Milkdown Team β€” For the WYSIWYG Markdown editor framework
  • ProseMirror Team β€” For the robust rich text editing foundation
  • Electron Team β€” For the cross-platform desktop framework
  • Vite Team β€” For the blazing-fast build toolchain
  • Testing Community β€” Beta testers who provided valuable feedback on v1.5.2-beta.0

πŸ“ Changelog

For detailed change history, see CHANGELOG.md.

Key changes since v1.5.1:

  • v1.5.2-beta.0: Initial i18n implementation, PDF export refactor, mobile fixes
  • v1.5.2 (stable): Complete internationalization, production-ready, documentation updated

πŸ”— Links


πŸ“œ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


πŸ’¬ Feedback & Support

Found a bug? Have a feature request? Want to contribute?


Thank you for using ColaMD! πŸŽ‰

Built with ❀️ by the ColaMD community