# mdeditor **Repository Path**: txcgb111/mdeditor ## Basic Information - **Project Name**: mdeditor - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-27 - **Last Updated**: 2025-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Modern MD Editor Logo

Modern MD Editor

Social‑platform‑friendly Markdown Editor

Vue 3 Vite 5 CodeMirror 6 node >=18 npm >=9 MIT License

English · 简体中文

> A modern Markdown editor designed for an exquisite writing experience and one-click HTML output tailored for WeChat Official Accounts and social platforms. Elegant UI, smooth interactions, WYSIWYG preview and copy — craft beautiful content efficiently. ## Introduction - What it is: A modern Markdown editor with refined aesthetics and powerful preview. It can convert Markdown to HTML optimized for WeChat/social platforms in one click (auto inline styles, font/line-height/letter-spacing tuning, theme-based beautification). - Why it exists: Pasting Markdown into WeChat/social editors often loses styling and looks inconsistent. This project provides a one-click copy flow to fix tedious formatting. - What makes it different: - Elegant UI and smooth UX (viewport switch, synced scrolling, theme preloading to avoid FOUC). - Adjustable color theme / code style / typography system / fonts, letter spacing and line height. - Compatibility strategies tailored for social editors with smart fallbacks. ## Preview ### One-click WeChat format ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810145119169.png) ### Split view: Edit + Preview ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144536506.png) ### Preview viewport (Desktop / Tablet / Mobile) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144616512.png) ### Mermaid support ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250814231133156.png) ### Settings panel (Theme / Code style / Font / Spacing) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144902477.png) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144832875.png) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144933681.png) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144947233.png) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810145007195.png) ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810145031310.png) ### Rich color themes - ![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144355636.png) ## Features - WYSIWYG preview - Real-time rendering with two-way synced scrolling between editor and preview. - One-click viewport switch: desktop / tablet / mobile. - One-click copy as WeChat/social HTML - Automatic inline styles (font family/size, line height, letter spacing, palette). - Themed adaptations and detail polish (headings, lists, quotes, code, tables, etc.). - Modern Clipboard API first with graceful fallback for broader compatibility. - Powerful theme and typography system - Color themes with live preview and persistence. - Code styles (background/font/highlight tokens applied in one place). - Typography system via CSS variables (layout, spacing, radius, shadows, etc.). - Adjustable reading experience - Font family, size, line height, letter spacing are all tunable in Settings. - Modern frontend architecture - Vue 3 + Vite 5 + CodeMirror 6. - Theme preload (avoid FOUC), debounced performance, caching, modular design. ## Tech Stack & Architecture - Core - Vue 3: SFC with