Advanced Markdown formatter with CJK-English auto-spacing, LaTeX-to-Unicode symbol conversion, code block language auto-wrapping, and HTML/Markdown bidirectional conversion. Extensively rewritten fork of markdownformat with 5 custom commands, modular architecture, and delimiter-aware formatting.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
An advanced Markdown formatter for VS Code with strong CJK (Chinese/Japanese/Korean) text support. This extension normalizes Markdown documents by handling mixed CJK-English spacing, full-width to half-width character conversion, LaTeX symbol conversion, code block formatting, and more.
Features
CJK-English auto-spacing: Automatically inserts spaces between Chinese and English characters for better readability
Full-width character conversion: Converts full-width numbers, letters, and punctuation to half-width equivalents
LaTeX-to-Unicode conversion: Converts LaTeX math commands to Unicode symbols (e.g., \alpha to α, \le to ≤)
Code block auto-wrapping: Auto-detects and wraps bare code blocks with language tags (PLAINTEXT, MERMAID, PYTHON, POWERSHELL, BAT, VBS, CMD, REG, etc.)
Math formula formatting: Converts inline math formulas to block format with proper line breaks
HTML/Markdown bidirectional conversion: Convert between HTML description format and Markdown
Relative path copying: Copy the current file's encoded relative path as a Markdown link
Delimiter-aware formatting: Smart formatting that preserves content inside brackets, quotes, and code spans
Table preservation: Detects Markdown tables and preserves their spacing
This is an extensively rewritten fork of liushilive.markdownformat(v0.0.15). The original version has not been updated since 2019. Major changes include:
Architecture: Refactored into modular structure with separate utils.js module; layered processing pipeline (T0-T5)
4 new commands added (HTML/MD conversion, path copying)
Removed all configuration options in favor of always-on formatting
Added: CJK-English spacing, LaTeX symbol conversion, code block language detection, math formula line breaks, delimiter-aware processing, table detection, YAML frontmatter preservation
Registered as Document Formatting Provider for format-on-save support
Attribution
Based on MarkdownFormat by liushilive (v0.0.15). This fork has been independently and extensively modified with substantial new functionality and is maintained separately.