md-editor-pro

作者 seehiong已验证

Markdown Editor Pro — A powerful, feature-rich markdown editor with live preview, LaTeX math support, GitHub-inspired styling, and seamless integration into React apps. Built with React, TypeScript, and Tailwind CSS.

115
Stars
9
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/seehiong/md-editor-pro

快速入门

使用 md-editor-pro 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Markdown Editor Pro

A powerful, feature-rich markdown editor built with React, TypeScript, and Tailwind CSS. This editor provides a seamless writing experience with live preview, math equation support, and beautiful GitHub-inspired styling.

🔗 Live Demo

✨ Features

  • 📝 IDE-style Split View - CodeMirror 6 editor with live preview side by side, draggable divider, bidirectional scroll sync
  • 🗂️ Multiple Documents - Tabbed editing, autosaved to your browser — nothing ever leaves your machine
  • 🧭 Outline Pane - Heading tree, click to jump anywhere in the document
  • 💾 Real File Editing - Open and save local .md files natively (Ctrl+S) via the File System Access API
  • 🧮 Math Support - Full LaTeX equation support via KaTeX
  • 🧜 Mermaid Diagrams - Flowcharts, sequence and class diagrams rendered in-browser (lazy-loaded)
  • 📋 GitHub Flavored Markdown - Tables, task lists, strikethrough, and more
  • 🛠️ Formatting Toolbar - Plus keyboard shortcuts (Ctrl+B/I/K, Ctrl+F search)
  • 🖼️ Image Paste - Paste or drag-drop images straight into the editor as self-contained base64
  • 📤 Export - Standalone HTML file or print-to-PDF
  • AI Assist (BYOK) - Improve, proofread, summarize or continue writing with your own API key (OpenRouter, OpenAI, or local Ollama)
  • 🌙 Dark/Light Theme - Class-based theming with a toggle, follows your system by default
  • ✍️ Focus & Typewriter Modes - Distraction-free writing
  • 📴 Offline PWA - Installable as an app; works with no internet
  • 📊 Real-time Stats - Line/column, character, word, and line count

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/seehiong/md-editor-pro.git
cd markdown-editor-pro

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:5173 in your browser

Integration into Your React App

import { MarkdownEditor } from './components/MarkdownEditor';

function App() {
  return (
    <div className="container mx-auto p-4">
      <MarkdownEditor />
    </div>
  );
}

📝 Markdown Features

Basic Formatting

  • Headers - # H1 through ###### H6
  • Emphasis - *italic*, **bold**, ~~strikethrough~~
  • Links - [text](https://github.com/seehiong/md-editor-pro/blob/main/url) and reference-style links
  • Images - ![alt text](https://raw.githubusercontent.com/seehiong/md-editor-pro/main/image-url) with automatic sizing

Advanced Features

  • Code Blocks - Syntax highlighting with fenced code blocks
  • Tables - Full table support with column alignment
  • Lists - Bulleted, numbered, and interactive task lists
  • Blockquotes - > quoted text with nested support
  • Math Equations - LaTeX support for inline and block equations
  • Horizontal Rules - --- or ***

Math Equation Examples

Inline math: $E = mc^2$ renders as $E = mc^2$

Block math:

$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

🎨 Theming

The editor automatically adapts to your application's theme system:

// Light mode (default)
<MarkdownEditor />

// Dark mode - add 'dark' class to any parent element
<div className="dark">
  <MarkdownEditor />
</div>

Theme Features

  • Clean, GitHub-inspired light theme
  • Beautiful dark mode with proper contrast ratios
  • Smooth transitions between themes
  • Respects system preferences

🛠️ Tech Stack

  • React 18 - Modern UI framework
  • TypeScript - Type safety and better DX
  • Tailwind CSS - Utility-first styling
  • Vite - Fast build tool and dev server
  • react-markdown - Markdown parsing and rendering
  • KaTeX - High-quality math typesetting
  • Lucide React - Beautiful, consistent icons

📦 Project Structure

src/
├── components/
│   ├── MarkdownEditor.tsx     # Main editor component
│   ├── MarkdownGuide.tsx      # Interactive help guide
│   ├── MarkdownRenderers.tsx  # Custom code block renderers
│   └── MermaidDiagram.tsx     # Mermaid diagram support
├── App.tsx                    # Root component
├── main.tsx                   # Application entry point
└── index.css                  # Global styles and Tailwind imports

⚙️ Configuration

Customizing Features

// Disable specific features
<MarkdownEditor 
  showStats={false}
  allowFileOperations={false}
  enableMath={false}
/>

Styling Customization

The editor uses Tailwind CSS classes and can be customized by:

  • Modifying the component's className props
  • Overriding CSS custom properties
  • Extending the Tailwind configuration

Adding Plugins

// Add custom remark/rehype plugins
import remarkGfm from 'remark-gfm';
import rehypeHighlight from 'rehype-highlight';

// Configure in MarkdownEditor component

🚀 Usage Examples

Basic Implementation

import { MarkdownEditor } from './components/MarkdownEditor';

export default function MyApp() {
  return (
    <div className="min-h-screen bg-gray-50 dark:bg-gray-900">
      <div className="container mx-auto py-8">
        <h1 className="text-3xl font-bold mb-6">My Markdown Editor</h1>
        <MarkdownEditor />
      </div>
    </div>
  );
}

With Custom Styling

<div className="max-w-4xl mx-auto">
  <MarkdownEditor className="border border-gray-200 rounded-lg shadow-lg" />
</div>

📱 Responsive Behavior

  • Desktop - Full feature set with side-by-side edit/preview
  • Tablet - Adaptive layout with toggle between edit/preview
  • Mobile - Optimized touch interface with swipe gestures

🤝 Contributing

We welcome contributions! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Maintain existing code style
  • Add tests for new features
  • Update documentation as needed

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • GitHub for design inspiration and markdown standards
  • React Markdown community for excellent tooling
  • KaTeX for beautiful mathematical typesetting
  • Tailwind CSS for utility-first styling philosophy
  • Lucide for the beautiful icon set

📧 Support

If you have questions or need help integrating this editor:

  • Open an issue for bugs or feature requests
  • Check out the live demo for examples
  • Review the built-in help guide within the editor

Made with ❤️ for the React community

Star ⭐ this repo if you find it useful!

常见问题

What is md-editor-pro?

md-editor-pro is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by seehiong. Markdown Editor Pro — A powerful, feature-rich markdown editor with live preview, LaTeX math support, GitHub-inspired styling, and seamless integration into React apps. Built with React, TypeScript, and Tailwind CSS. It has 115 GitHub stars.

Is md-editor-pro safe to use?

Yes. md-editor-pro passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install md-editor-pro?

Clone the repository with "git clone https://github.com/seehiong/md-editor-pro" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is md-editor-pro written in?

md-editor-pro is primarily written in TypeScript. It is open-source under seehiong on GitHub, so you can review or fork the full source.

Are there alternatives to md-editor-pro?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh md-editor-pro against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情