English | 简体中文
Master Markdown syntax from beginner to expert in one day – This is a comprehensive Markdown learning resource library, containing complete tutorials from basic syntax to advanced usage, as well as a practical collection of online tools to help you quickly master Markdown and apply it to real projects.
- 📖 Complete Documentation System – A structured learning path from beginner to expert
- 🛠️ Practical Toolset – 6 online tools built with Vue3 + UnoCSS
- 🌍 Bilingual Support (EN & CN) – Available in both Chinese and English
- 📱 Responsive Design – Supports desktop and mobile devices
- 🚀 Modern Tech Stack – Developed with the latest front-end technologies
- Official Website: https://www.markdownlang.com
- Chinese Docs: https://www.markdownlang.com/zh-cn/
- Extended Overview
- Tables
- Fenced Code Blocks
- Footnotes
- Heading IDs
- Definition Lists
- Strikethrough
- Task Lists
- Highlight
- Advanced Overview
- Best Practices
- CSS
- JavaScript
- Diagrams
- Math
- Performance
- Plugins
- SEO
- Security
- Shortcodes
- Tools
- Frontmatter
A modern Markdown tool collection built with Vue3 and UnoCSS:
A real-time preview editor with syntax highlighting and toolbar operations
- Features: Split preview, syntax highlighting, quick toolbar
- Path:
/tools/editor
- Markdown to HTML: Convert Markdown to HTML code, supports download
- Markdown to PDF: Export Markdown documents to PDF files
- HTML to Markdown: Convert HTML code to Markdown format
A dedicated read-only preview tool, supporting URL loading and file upload
- Features: Beautiful preview, file upload, URL loading
- Path:
/tools/viewer
Interactive cheatsheet, click to view examples and demos
- Features: Categorized display, real-time examples, quick copy
- Path:
/tools/cheatsheet
- Visit markdownlang.com
- Choose Chinese or English
- Follow the learning path: Introduction → Basic → Extended → Advanced
- Go to the Tools Page
- Choose the tool you need
- Use directly in the browser, no installation required
# Clone the repository
git clone https://github.com/ayuday/markdown.git
cd markdown
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build production version
pnpm build- Node.js: >= 16.0.0
- pnpm: >= 8.0.0 or npm: >= 7.0.0 or yarn: >= 1.22.0
- Modern browsers: Chrome 88+, Firefox 85+, Safari 14+, Edge 88+
src/
├── package.json # Project dependency config
├── vite.config.js # Vite build config
├── uno.config.js # UnoCSS config
├── index.html # Entry HTML
└── src/ # Source code directory
├── main.js # Vue app entry
├── App.vue # Main app component
├── router.js # Routing config
├── components/ # Tool components
│ ├── AppHeader.vue # Navigation header
│ ├── AppFooter.vue # Footer
│ ├── MarkdownEditor.vue # Markdown Editor
│ ├── MarkdownViewer.vue # Markdown Viewer
│ ├── MarkdownToHtml.vue # MD to HTML
│ ├── MarkdownToPdf.vue # MD to PDF
│ ├── HtmlToMarkdown.vue # HTML to MD
│ └── MarkdownCheatsheet.vue # Syntax cheatsheet
├── utils/ # Utility functions
│ └── markdown.js # Markdown processing tools
├── views/ # Page components
│ └── Home.vue # Home page
└── styles/ # Style files
└── main.css # Global styles
cd src
npm installnpm run devThe server will run at http://localhost:3000 with hot reload enabled.
npm run buildBuild output will be in the dist/ directory.
npm run previewnpm run lintFeatures:
- Real-time side-by-side preview
- Rich toolbar (format, headings, lists, links, etc.)
- Keyboard shortcut support
- Syntax highlighting
- Export MD and HTML
Usage:
- Enter Markdown content in the left editor area
- View rendered effect in the right preview in real time
- Use toolbar buttons for quick formatting
- Keyboard shortcuts supported (e.g. Ctrl+B for bold)
- Download your edited content
Features:
- Support loading Markdown files via URL
- Support uploading local files
- Beautiful preview style
- Document statistics
- Switch between source and preview modes
Usage:
- Enter Markdown file URL or upload a local file
- Preview is rendered automatically
- Can switch between source/preview modes
- Support copying contents and downloading
Features:
- Real-time Markdown to HTML conversion
- Supports downloading full HTML files
- Built-in preview function
- Copy HTML code
Usage:
- Paste or type Markdown content in the input box
- The converted HTML is shown on the right
- Click "Copy" to copy HTML code
- Click "Download HTML" for the full HTML file
Features:
- Export Markdown to PDF
- Supports multiple page formats (A4, A3, Letter, Legal)
- Custom margin settings
- Select portrait/landscape layout
- Optional header/footer
Usage:
- Enter your Markdown content
- Set PDF parameters (page size, orientation, margins, etc.)
- Click "Generate PDF" to download
Features:
- Intelligent HTML to Markdown conversion
- Supports complex HTML structures
- Preserves original formatting
- Built-in sample templates
Usage:
- Paste HTML code into the input box
- Converted Markdown is shown on the right
- Choose a built-in sample to test quickly
- Download the result
Features:
- Interactive syntax reference
- Categorized display of all syntax
- Click for detailed examples
- Search and filter supported
Usage:
- Browse syntax by category
- Click the card for detailed usage
- Use search for quick lookup
- Copy example code
- Vue 3: Uses Composition API and
<script setup>syntax - Vue Router 4: SPA route management
- UnoCSS: Atomic CSS framework providing abundant utility classes
- Tailwind CSS: Supported through UnoCSS presets
- Custom Styles: Project-specific style customizations
- Marked: Fast Markdown parser
- Turndown: HTML to Markdown converter
- Prism.js: Code syntax highlighting (optional)
- html2pdf.js: Export HTML to PDF
- @vueuse/core: Vue composition utilities
- Vite: Fast dev server and build tool
- ESLint: Code quality checking
- Create a new Vue component in
src/components/ - Add routing config to
src/router.js - Update the tool list in
src/views/Home.vue - Add usage instructions to
README.md
UnoCSS is used for style management:
// uno.config.js
export default defineConfig({
// Custom theme colors
theme: {
colors: {
primary: {
50: '#eff6ff',
// ... other colors
}
}
},
// Custom shortcuts
shortcuts: {
'btn': 'inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md',
'btn-primary': 'btn text-white bg-primary-600 hover:bg-primary-700'
}
})// src/utils/markdown.js
import { marked } from 'marked'
// Custom marked config
marked.setOptions({
breaks: true,
gfm: true,
// ... other config
})
// Custom parser
export function customMarkdownToHtml(markdown) {
// Custom processing logic
return marked.parse(markdown)
}The built dist/ directory can be deployed to any static file server:
npm run build
# Deploy dist/ directory to your server- Vercel: Zero-config deployment
- Netlify: CI/CD supported
- GitHub Pages: Free static hosting
- Alibaba Cloud OSS: Object storage static hosting
- Tencent Cloud COS: Object storage static hosting
Create a .env file to configure environment variables:
# .env
VITE_APP_TITLE="Markdown Toolset"
VITE_API_BASE_URL="https://api.example.com"A: Check your network connection and make sure you use a modern browser. Consider using a CDN to accelerate static resources.
A: Make sure the content is not empty and that your browser supports PDF generation. Some browsers may require popups to be allowed.
A: Modify the theme config in uno.config.js, or add custom style classes in components.
A: Supports all GitHub Flavored Markdown (GFM) syntax, including tables, task lists, strikethrough, etc.
- ✅ Initial release
- ✅ 6 core tool components
- ✅ Complete UI design and interaction
- ✅ Responsive layout support
- ✅ Chinese and English documentation
Contributions via Issues and Pull Requests are welcome!
- Fork this repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Create a Pull Request
This project is licensed under the MIT License.
This project adopts the MIT License, allowing free use, modification, and distribution.
You are welcome to submit Issues or Pull Requests to help improve this project!
- Website: www.markdownlang.com
- GitHub: https://github.com/ayuday/markdown