markdown-it-vue-component
v0.0.17
Published
A Markdown-it plugin to render Vue components inside Markdown, supporting streaming rendering.
Maintainers
Readme
[!WARNING] This plugin is no longer maintained. Please migrate to the new, more powerful version: markdown-it-fusion.
The new plugin offers native support for stream rendering, dynamic component injection, and custom tag replacement.
此插件已停止维护。 请迁移至功能更强大的新版本:markdown-it-fusion。
新插件原生支持 流式渲染、动态组件注入 和 自定义标签替换。
Deprecation Notice / 弃用通知
This project has been superseded by markdown-it-fusion, a completely rewritten and more advanced plugin.
The new version is architected from the ground up to support modern front-end development, with key features including:
- Native Stream Rendering: Flawlessly handles streaming data, rendering content progressively as it arrives for an ultra-responsive UI.
- Inject Any Component: Seamlessly insert any Vue or React component directly into your Markdown using HTML-like syntax (
<MyComponent ... />). - Custom Tag Replacement: Go beyond standard Markdown by defining rules to replace any custom tag with interactive components.
- Structured Output (Segments): Instead of flat HTML, get a structured list of text and component segments for precise, high-performance rendering and updates.
We strongly recommend all users to upgrade to markdown-it-fusion for these powerful features and ongoing support.
本项目已被 markdown-it-fusion 取代。这是一个完全重写、更高级的插件。
新版本从底层架构开始,专为现代前端开发而设计,其核心特性包括:
- 原生流式渲染:完美处理流式数据,在数据到达时渐进式渲染内容,提供极致灵敏的 UI 体验。
- 注入任意组件:使用类 HTML 语法(
<MyComponent ... />),将任意 Vue 或 React 组件无缝插入 Markdown。 - 自定义标签替换:通过定义规则,将任意自定义标签替换为交互式组件,超越标准 Markdown 的限制。
- 结构化输出 (Segments):不再是扁平的 HTML,而是获取结构化的文本与组件段落列表,以实现精确、高性能的渲染与更新。
我们强烈建议所有用户升级到 markdown-it-fusion,以体验这些强大功能并获得持续的技术支持。
