Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>m0m0-32-markdown-formatterNew to Visual Studio Code? Get it now.
m0m0-32-markdown-formatter

m0m0-32-markdown-formatter

m0m0

|
2 installs
| (0) | Free
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.
Copied to clipboard
More Info

m0m0-32-markdown-formatter

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
  • YAML frontmatter preservation: Skips formatting inside --- separator blocks

Commands

Command Description
GF32 MdFormat: 格式化MD Format the current Markdown document
GF32 MdFormat: 格式化MD_html2md Convert HTML description to Markdown
GF32 MdFormat: 格式化MD_md2html Convert Markdown to HTML description
GF32 MdFormat: 复制当前文件的相对路径 Copy encoded relative path of current file
GF32 MdFormat: 复制当前文件的相对路径_带标题 Copy encoded relative path with filename as title

Key Modifications from Original

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft