Next-generation markdown parser and Vue renderer with high-performance Worker support.
- High Performance: Built on unified/remark/rehype ecosystem with optimized rendering
- Worker Support: Multi-threaded parsing with Web Workers and Worker Pool for non-blocking UI
- Rich Syntax: GitHub Flavored Markdown (GFM), math formulas (MathJax), and syntax highlighting
- Vue 3 Integration: Seamless Vue components rendering from markdown AST
- Extensible: Hook system for custom markdown node processing
- Type Safe: Full TypeScript support
This monorepo contains:
- @markdown-next/parser: Core markdown parser with Worker support
- @markdown-next/vue: Vue 3 renderer for parsed markdown
npm install @markdown-next/parser @markdown-next/vue
# or
pnpm add @markdown-next/parser @markdown-next/vue
# or
yarn add @markdown-next/parser @markdown-next/vue<script setup>
import { MarkdownRenderer } from '@markdown-next/vue';
const markdown = '# Hello World\n\nThis is **markdown**!';
</script>
<template>
<MarkdownRenderer :markdown="markdown" />
</template>- Parser: unified, remark, rehype
- Worker: Comlink for seamless Worker communication
- Plugins: remark-math, rehype-mathjax, remark-gfm
- Build: tsup, vite
- Test: vitest
- Docs: VitePress
For detailed documentation, examples, and API reference, visit:
- Node.js >= 16.0.0
- pnpm >= 8.0.0
Contributions are welcome! Please follow these guidelines:
- Fork the repository
- Create your feature branch from
main - Make your changes:
- For documentation-only changes: Submit PR to
docsbranch - For code changes (with or without docs): Submit PR to
mainbranch
- For documentation-only changes: Submit PR to
- Commit your changes with clear commit messages
- Push to your fork
- Open a Pull Request
For detailed contribution guidelines, please read CONTRIBUTING.md.