Install
openclaw skills install local-markdown-editorClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Local Markdown Editor with Live Preview - A web-based markdown editor that opens a Flask server and provides real-time editing with live preview, sync scrolling, and toolbars for all markdown tags.
openclaw skills install local-markdown-editorEnglish | 中文
English:
This skill runs a local-only Flask server for markdown editing. It does NOT:
Security Features:
中文:
此技能运行仅限本地的Flask服务器进行Markdown编辑。它不会:
安全特性:
English:
A web-based markdown editor that runs locally with a Flask server and provides real-time editing with live preview. Features include sync scrolling between editor and preview, comprehensive markdown toolbar, and direct file saving.
中文:
基于Web的Markdown编辑器,本地运行Flask服务器,提供实时编辑和预览功能。包括编辑器与预览同步滚动、完整的Markdown工具栏、直接文件保存。无需安装,就可以在本地直接编辑markdown。
English:
?file=path中文:
?file=路径 打开文件pip install flask flask-cors markdown
English:
# Method 1: Direct Python command with file parameter
python app.py "path\to\your\file.md" --port 996 --force
# Method 2: Open current skill's documentation
python app.py SKILL.md --port 996 --force
# Method 3: Open empty editor
python app.py --port 996 --force
# Method 4: Open via URL parameter in browser
# After starting server, open in browser:
# http://localhost:996/?file=path/to/your/file.md
# Method 5: Using relative path (from workspace)
python app.py "skills\ace-banana2\SKILL.md" --port 996 --force
中文:
# 方法1: 直接Python命令带文件参数
python app.py "文件路径\文件名.md" --port 996 --force
# 方法2: 打开本技能的文档
python app.py SKILL.md --port 996 --force
# 方法3: 打开空编辑器
python app.py --port 996 --force
# 方法4: 通过浏览器URL参数打开
# 启动服务器后,在浏览器中打开:
# http://localhost:996/?file=路径/文件.md
# 方法5: 使用相对路径(相对于工作空间)
python app.py "skills\ace-banana2\SKILL.md" --port 996 --force
English:
Start editor with a file:
python app.py "C:\path\to\file.md"
Browser automatically opens with URL parameter:
http://localhost:996/?file=C:\path\to\file.mdAlternative method: Direct URL access
http://localhost:996/?file=path/to/file.md
Edit file with toolbar and see live preview
Click "Save" button to save changes back to original file
中文:
使用文件启动编辑器:
python app.py "C:\路径\文件.md"
浏览器自动打开并带URL参数:
http://localhost:996/?file=C:\路径\文件.md替代方法:直接URL访问
http://localhost:996/?file=路径/文件.md
使用工具栏编辑文件并查看实时预览
点击"保存"按钮将更改保存回原文件
Icons available:
xi-markdown/
├── SKILL.md # This documentation
├── scripts/
│ ├── app.py # Flask server with API (enhanced)
│ ├── index.html # Frontend HTML with JavaScript (redesigned)
│ ├── test.md # Test markdown file
│ └── styles.css # CSS styles (optional)
└── references/
└── api_docs.md # API documentation
/?file=path (opens file via AJAX)/api/health{"status": "ok", "timestamp": "..."}/api/filepath (file path, supports relative paths)/api/file{"path": "file_path", "content": "file_content"}/api/previewmarkdown (markdown text)/api/openpath (file path, supports relative paths)/api/shutdownEnglish:
Open files directly via URL parameter:
http://localhost:996/?file=skills/xi-markdown/SKILL.md
中文:
通过URL参数直接打开文件:
http://localhost:996/?file=skills/xi-markdown/SKILL.md
English:
navigator.sendBeacon() for reliable delivery中文:
navigator.sendBeacon() 确保请求送达English:
中文:
python app.py "skills\a-stock-get\SKILL.md"
# or via URL: http://localhost:996/?file=skills/a-stock-get/SKILL.md
python app.py "skills\ace-banana2\SKILL.md" --port 996 --force
python app.py "C:\Users\YourName\notes.md"
python app.py
# Then use "Save As" in the editor
# Start server without file
python app.py --port 996 --force
# Then open in browser:
# http://localhost:996/?file=skills/xi-markdown/SKILL.md
English:
localhost:996 by defaultCtrl+C to manually stop the server if needed中文:
localhost:996Ctrl+C 手动停止服务器app.py for backend changesindex.html for frontend changes<style> tags or separate filepython app.py --debug
Version: 1.2.0
Last Updated: 2026-03-14
Author: XI Markdown Editor Team
Email: zhuxi0906@gmail.com
Wechat: jakeycis
?file=path)