Skip to content

Release v1.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 11:35
· 22 commits to main since this release
08fbc13

Markdown Them Release v1.4.0

Changelog for v1.4.0

General Architecture & Source Variants

1. Tauri Desktop Application (src-tauri/, src/app/)

  • Tauri v2 Migration: Migrated desktop architecture from Electron to Tauri v2 with a high-performance, multi-threaded Rust backend (src-tauri/) handling native file dialogs, recursive directory scanning, and zero-leak file I/O.
  • Client-Side In-Memory Conversion: Pure client-side conversion engine executing in UI runtime with parallel worker queues, ensuring documents never leave the local machine.
  • Enhanced Desktop UI: Redesigned header and drop zones with format badges, keyboard accessibility (Enter/Space), item removal (X) from batch queues, real-time live statistics in Text Mode, and smooth zoom controls (Ctrl+=/Ctrl+-/Ctrl+Scroll).
  • Internationalization: Full localization across 8 languages (English, Vietnamese, Chinese, Japanese, Spanish, French, Korean, German) with modular translation dictionaries.

2. Node.js Package & CLI Tool (@the-long-ride/markdown-them, mdthem)

  • mdthem Executable CLI: Added full command-line conversion utility supporting global (-g) and local usage.
  • Single File & Directory Conversion: Converts single files with destination path inference (mdthem -s <file>) or explicit destination (mdthem -s <file> -d <out.md>), and entire directories (mdthem -s <dir> -d <out_dir>).
  • Recursive Directory Processing: Added -a / --all recursive flag (mdthem -s -all <dir> -d <out_dir>) with loop-safe destination isolation.
  • Path Inference & Collision Avoidance: Automatic creation of non-existent target directories, suffixing input markdown files (_converted.md), and deterministic numbered disambiguation (summary-2.md, summary-3.md) across subdirectories.
  • Dual Package Support: Dual-mode package architecture supporting both CommonJS (require) and ECMAScript Modules (import()) in Node.js >= 18.

3. VS Code Extension (src/vscode/, src/extension.ts)

  • Keyboard Shortcuts: Added Ctrl+Alt+M (Windows/Linux) and Cmd+Alt+M (macOS) keybindings for instant conversion of active files.
  • Active Editor Fallback: Automatically infers and converts the current active editor document when triggered without an Explorer context selection.
  • Destination Feedback: Explicit destination file path notification displayed upon single-file conversion completion.
  • Configurable Concurrency: Configurable concurrent conversion limit (markdown-them.maxConcurrentConversions, range 1–16).

4. Web Application (src/app/, dist/web/)

  • Self-Contained Browser Build: Modular esbuild browser bundle (scripts/build-apps.mjs) compatible with strict CSP environments without inline script violations.
  • Dynamic Dev Server: Fast local development server with Server-Sent Events (SSE) live reload (scripts/start-web.mjs).
  • Universal Worker Resolution: Robust multi-tier dynamic resolution of pdf.worker.min.mjs supporting pnpm, npm, and yarn virtual store layouts.

5. Core Document Parsers (src/core/)

  • Strict LOC Limit Compliance: Refactored monolithic parsers into single-responsibility submodules adhering to strict lines-of-code thresholds (.ts <= 300, .tsx <= 350, .rs <= 300, .css <= 400).
  • Modular PPTX Engine: Split into collector, geometry, image, layout, package, renderer, table, text, types, and xml.
  • Modular ODF Engine: Split into flow, geometry, images, layout, presentation, spreadsheet, styles, types, and xml.
  • Modular Markdown Utilities: Split into normalization, office-ast, tables, turndown, and xml.
  • Modular RTF Engine: Split into formatter, parser, and types with full \uc0 CJK character support.
  • Isolated Worker Polyfills: Clean lifecycle cleanup for PDF.js / unpdf globals preventing cross-version worker collisions.

6. Testing & CI Infrastructure (tests/, scripts/, .github/)

  • Automated LOC Linter: Enforced through scripts/loc-lint.mjs and scripts/lib/source-policy.mjs across every source file.
  • Complex Document Test Suite: Added zero-external-binary fixtures and end-to-end tests (Tiers 6 & 7) covering multi-sheet XLSX, multi-slide PPTX, semantic HTML, CJK RTF, and multi-page stream PDFs.
  • Unified Test Orchestrator: pnpm run test executes fast parallel Stage 1 validation (LOC lint, Cargo fmt, TypeScript compilation, apps typecheck, Prettier) and parallel Stage 2 suites (Tauri Rust backend tests, Node.js E2E & >90% branch coverage suite) in ~20 seconds.
  • CI Modernization: Updated GitHub Actions (.github/workflows/build.yml) with automated Rust toolchain setup, web builds, and end-to-end multi-tier test pipelines.

Choose the file that matches how you want to use Markdown Them:

  • .vsix : VS Code extension package for manual install. In VS Code, run "Extensions: Install from VSIX..." and choose this file.
  • .zip (Windows Portable) : Portable Windows desktop app (extract and run markdown-them.exe without installation).
  • .exe (Windows Portable) : Standalone portable Windows executable.
  • .deb : Linux installer for Debian, Ubuntu, and compatible distributions.
  • .tar.gz (macOS Portable) : Portable macOS app bundle (extract and move markdown-them.app anywhere).
  • .zip (macOS Portable) : Portable macOS zip archive.

Other Install Links

For a list of changes in this release, see the CHANGELOG.md.