Allows you mix Vue SFC or component into Markdown
MarkVue is a package that allows you to mix Vue components or Vue Single File Components (SFC) into Markdown. It is inspired by @vue/sfc-playground and provides a convenient way to incorporate Vue elements into Markdown files.
To install MarkVue, follow these steps:
npm install markvue
import markvue from 'markvue';
For Vue SFC:
\<vue-sfc>
...
\</vue-sfc>
For Vue components:
\<vue-comp>
...
\</vue-comp>
To add attributes to the root element of Vue SFC or Vue components:
\<vue-sfc class="my-class">
...
\</vue-sfc>
To set custom options for the Marked renderer, add the attribute markedOptions to the MarkVue element:
\<markvue markedOptions="{ /* custom options */ }">
...
\</markvue>
Please note that MarkVue only supports Vue 3 and does not support TypeScript, style preprocessors, or Babel transform of SFC.
MarkVue is a useful package for incorporating Vue components and SFC into Markdown. It provides a simple installation process and allows for easy integration of Vue elements. The package supports Vue 3 and offers features such as injecting Vue into Vue SFC, binding external packages, and adding attributes to root elements. However, MarkVue does not support Vue 2, TypeScript, style preprocessors, or Babel transform of SFC. The package is licensed under MIT.