Vuepress plugin for demo block.
Demo Container is a Vuepress-based plugin designed to simplify the process of adding Vue examples to documents. It aims to address the following challenges faced when using Vuepress to write component examples:
export default {}
code block in Markdown.To install Demo Container, follow these steps:
npm install demo-container --save-dev
or
yarn add demo-container --dev
config.js
):plugins: [
'demo-container'
]
Demo Container is a useful Vuepress-based plugin that simplifies the task of adding Vue examples to documents. It resolves the challenges of duplicating component examples and the inability to render the export default {}
code block in Markdown. With its syntax similar to Element UI’s document rendering, writing sample syntax directly in Markdown becomes effortless. Overall, Demo Container is a valuable tool for Vuepress users looking to enhance their documentation with Vue examples.