{"id":51026568,"url":"https://github.com/gitstq/ai-markdown-editor","last_synced_at":"2026-06-21T20:02:04.347Z","repository":{"id":364084661,"uuid":"1266339178","full_name":"gitstq/ai-markdown-editor","owner":"gitstq","description":"AI驱动的现代化Markdown编辑器 - 支持实时预览、AI辅助写作、思维导图","archived":false,"fork":false,"pushed_at":"2026-06-11T14:27:31.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T16:16:20.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T14:25:23.000Z","updated_at":"2026-06-11T14:28:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/ai-markdown-editor","commit_stats":null,"previous_names":["gitstq/ai-markdown-editor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/ai-markdown-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fai-markdown-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fai-markdown-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fai-markdown-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fai-markdown-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/ai-markdown-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fai-markdown-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:03.434Z","updated_at":"2026-06-21T20:02:04.342Z","avatar_url":"https://github.com/gitstq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 📝 AI Markdown Editor\n\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://github.com/gitstq/ai-markdown-editor)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![React](https://img.shields.io/badge/React-18-61DAFB?logo=react)](https://react.dev)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.0-3178C6?logo=typescript)](https://www.typescriptlang.org)\n[![Tailwind CSS](https://img.shields.io/badge/Tailwind-3.0-06B6D4?logo=tailwindcss)](https://tailwindcss.com)\n\n**AI 驱动的现代化 Markdown 编辑器**\n\n[简体中文](#) | [English](#english) | [繁體中文](#繁體中文)\n\n\u003c/div\u003e\n\n---\n\n## 🎉 项目介绍\n\nAI Markdown Editor 是一款专为创作者设计的现代化 Markdown 编辑器，集成了 **GLM-5.1 AI 大模型**，让写作更加智能高效。无论是技术文档、博客文章还是笔记整理，都能获得 AI 的实时辅助。\n\n### 为什么选择 AI Markdown Editor？\n\n- 🚀 **开箱即用** - 无需复杂配置，安装即可使用\n- 🤖 **原生 AI 集成** - 深度集成 GLM-5.1，支持续写、润色、翻译\n- 🎨 **精美界面** - 基于 Tailwind CSS 的现代化设计\n- ⚡ **轻量快速** - 基于 Vite 构建，启动速度快\n\n---\n\n## ✨ 核心特性\n\n| 特性 | 描述 | 状态 |\n|------|------|------|\n| 🖊️ **实时预览** | 左右分栏编辑，即时渲染 Markdown | ✅ |\n| 🤖 **AI 续写** | 根据上下文智能续写文章 | ✅ |\n| ✨ **AI 润色** | 一键优化文本表达 | ✅ |\n| 🌐 **AI 翻译** | 支持中英文互译 | ✅ |\n| 📐 **智能格式化** | 一键美化 Markdown 结构 | ✅ |\n| 🌙 **多主题** | 亮色 / 暗色 / 专注模式 | ✅ |\n| 📤 **导出功能** | 支持 HTML 导出 | ✅ |\n| 🎯 **专注模式** | 沉浸式写作体验 | ✅ |\n| 📑 **文档大纲** | 自动生成标题导航 | ✅ |\n| 🧮 **数学公式** | 支持 LaTeX 公式渲染 | ✅ |\n| 💻 **代码高亮** | 支持 100+ 编程语言 | ✅ |\n\n---\n\n## 🚀 快速开始\n\n### 环境要求\n\n- Node.js \u003e= 18.0.0\n- npm \u003e= 9.0.0\n\n### 安装步骤\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/ai-markdown-editor.git\n\n# 进入项目目录\ncd ai-markdown-editor\n\n# 安装依赖\nnpm install\n\n# 启动开发服务器\nnpm run dev\n```\n\n### 构建生产版本\n\n```bash\n# 构建 Web 版本\nnpm run build\n\n# 构建 Electron 桌面应用\nnpm run electron:build\n```\n\n---\n\n## 📖 详细使用指南\n\n### AI 功能配置\n\n1. 点击左侧边栏的 **AI** 标签\n2. 点击设置图标，输入你的 GLM API Key\n3. 选择模型（默认 GLM-5.1）\n\n### 使用 AI 辅助写作\n\n1. **续写**: 在编辑器中输入内容，点击\"续写\"按钮\n2. **润色**: 选中文字，点击\"润色\"按钮\n3. **翻译**: 选中文字，选择\"转英文\"或\"转中文\"\n4. **格式化**: 点击\"格式化\"美化 Markdown 结构\n\n### 视图模式切换\n\n- **编辑模式**: 仅显示编辑器\n- **预览模式**: 仅显示预览\n- **分栏模式**: 左右分栏（默认）\n\n### 快捷键\n\n| 快捷键 | 功能 |\n|--------|------|\n| `Ctrl/Cmd + B` | 粗体 |\n| `Ctrl/Cmd + I` | 斜体 |\n| `Ctrl/Cmd + K` | 插入链接 |\n| `Ctrl/Cmd + Shift + C` | 代码块 |\n\n---\n\n## 💡 设计思路与迭代规划\n\n### 技术架构\n\n```\nai-markdown-editor/\n├── src/\n│   ├── components/     # React 组件\n│   ├── hooks/         # 自定义 Hooks\n│   ├── stores/        # Zustand 状态管理\n│   ├── types/         # TypeScript 类型定义\n│   └── lib/           # 工具函数\n├── electron/          # Electron 主进程\n└── dist/             # 构建输出\n```\n\n### 迭代路线图\n\n- [x] v1.0.0 - 基础编辑 + AI 辅助\n- [ ] v1.1.0 - 文件管理 + 本地存储\n- [ ] v1.2.0 - PDF/Word 导出\n- [ ] v1.3.0 - 思维导图视图\n- [ ] v1.4.0 - 插件系统\n- [ ] v2.0.0 - 协作编辑\n\n---\n\n## 📦 打包与部署指南\n\n### Web 版本\n\n```bash\nnpm run build\n# 输出到 dist/ 目录\n```\n\n### Electron 桌面应用\n\n```bash\n# Windows\nnpm run electron:build:win\n\n# macOS\nnpm run electron:build:mac\n\n# Linux\nnpm run electron:build:linux\n```\n\n### Docker 部署\n\n```dockerfile\nFROM node:18-alpine\nWORKDIR /app\nCOPY package*.json ./\nRUN npm install\nCOPY . .\nRUN npm run build\nEXPOSE 4173\nCMD [\"npm\", \"run\", \"preview\"]\n```\n\n---\n\n## 🤝 贡献指南\n\n我们欢迎所有形式的贡献！\n\n1. Fork 本仓库\n2. 创建特性分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交更改 (`git commit -m 'feat: add some amazing feature'`)\n4. 推送分支 (`git push origin feature/AmazingFeature`)\n5. 创建 Pull Request\n\n### 提交规范\n\n- `feat:` 新功能\n- `fix:` 修复问题\n- `docs:` 文档更新\n- `style:` 代码格式\n- `refactor:` 重构\n- `test:` 测试相关\n- `chore:` 构建/工具\n\n---\n\n## 📄 开源协议\n\n本项目基于 [MIT](LICENSE) 协议开源。\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\nMade with ❤️ by [gitstq](https://github.com/gitstq)\n\n\u003c/div\u003e\n\n---\n\n## English\n\n### Introduction\n\nAI Markdown Editor is a modern Markdown editor powered by GLM-5.1 AI, designed for creators who want intelligent writing assistance.\n\n### Features\n\n- Real-time preview with split view\n- AI-powered writing assistance (continue, polish, translate)\n- Multiple themes (Light, Dark, Focus)\n- Export to HTML\n- LaTeX math support\n- Code highlighting for 100+ languages\n\n### Quick Start\n\n```bash\ngit clone https://github.com/gitstq/ai-markdown-editor.git\ncd ai-markdown-editor\nnpm install\nnpm run dev\n```\n\n---\n\n## 繁體中文\n\n### 專案介紹\n\nAI Markdown Editor 是一款整合 GLM-5.1 AI 大模型的現代化 Markdown 編輯器，讓寫作更智能高效。\n\n### 核心功能\n\n- 即時預覽與分欄編輯\n- AI 續寫、潤色、翻譯\n- 多主題切換\n- HTML 匯出\n- LaTeX 數學公式支援\n\n### 快速開始\n\n```bash\ngit clone https://github.com/gitstq/ai-markdown-editor.git\ncd ai-markdown-editor\nnpm install\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fai-markdown-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fai-markdown-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fai-markdown-editor/lists"}