Skip to content

An out-of-the-box Markdown rendering component for Vue 3, built on markdown-it. It provides real-time Markdown rendering, table of contents generation, and full-text search, along with other commonly used features including markdown-it plugins, emoji, permalinks, and TypeScript.

License

Notifications You must be signed in to change notification settings

ZeroOneJs/markdown-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 中文

Vue Markdown Design

Vue Markdown Design is an out-of-the-box Markdown rendering component for Vue 3, built on markdown-it.

Key Features

🚀 Core - Real-time Markdown rendering, table of contents generation, and full-text search

📦 Builtins - Includes commonly used Markdown features such as emoji, permalinks, and syntax highlighting

🎨 Theming - Replaceable Markdown themes and component styles configurable via CSS variables

🔌 Plugins - Compatible with markdown-it plugins for flexible extensibility

📱 Responsive - Optimized for both desktop and mobile with responsive layouts

🧩 Modular - Import core features on demand and compose components for flexible layouts

🛡️ Security - HTML sanitization is enabled by default to mitigate XSS and other attacks

📋 Typings - Written in TypeScript with complete type definitions

Quick Start

Installation

npm i vue-markdown-design

Usage

// main.js

// Import component
import VueMarkdown from 'vue-markdown-design'

import { createApp } from 'vue'

const app = createApp()

// Register component
app.use(VueMarkdown)

app.mount('#app')
<!-- App.vue -->

<vue-markdown :src="`# Title\nContent`" />

More

For detailed documentation, visit https://markdown-design.pages.dev.

License

Released under the MIT license.

About

An out-of-the-box Markdown rendering component for Vue 3, built on markdown-it. It provides real-time Markdown rendering, table of contents generation, and full-text search, along with other commonly used features including markdown-it plugins, emoji, permalinks, and TypeScript.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •