Skip to content

calebman/vuepress-plugin-demo-container

Repository files navigation

Introduction

点此查看中文简介

Demo Container is a Vuepress-based plug-in, which can help you add Vue examples when writing documents. Its original intention is to reduce the difficulty of adding some related examples when writing component documents.

Using Vuepress to write component examples has the following embarrassment:

  1. Component examples and sample code are essentially the same, but need to be written twice;
  2. Vuepress cannot render the export default {} code block in Markdown;

The Demo Container refers to Element UI's document rendering and implements the same syntax as it can be used to write sample syntax directly in Markdown.

Click here for examples and documentation