vite-plugin-codeblock-playground

This transforms markdown:

Usage no npm install needed!

<script type="module">
  import vitePluginCodeblockPlayground from 'https://cdn.skypack.dev/vite-plugin-codeblock-playground';
</script>

README

vite-plugin-codeblock-playground

This transforms markdown:

Some button:

```vue playground
<button>hi</button>
```

Into:

Some button:

<Playground :code="decodeURI(encodeURI(`<button>hi</button>`))">

Intended to be used with VitePress or anything that transpiles Markdown to Vue SFC.

License

MIT