docusaurus-plugin-demo-block

0.3.3 • Public • Published

docusaurus-plugin-demo-block

Use code blocks as usual and get better rendering

GitHub Workflow Status (branch) npm npm GitHub top language GitHub

Install

npm i docusaurus-plugin-demo-block

Quick Start

  plugins: [
    [
      'demo-block',
      /** @type {import('./lib/option-type').Options} */
      ({}),
    ],
  ],

Example

vanilla vue react

Config

you can check this config file to find which config is supported

global config

  plugins: [
    [
      'demo-block',
      /** @type {import('./lib/option-type').Options} */
      ({ babel: false }),
    ],
  ],

local config

\```html vanilla babel=false
<template>
  <div id="box">box</div>
</template>

<style>
  #box {
    border: 1px solid red;
  }
</style>

<script>
var box = document.getElementById('box');
</script>

\```

Docs

https://xiguaxigua.com/docusaurus-plugin-demo-block

Contributing

Contributing

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i docusaurus-plugin-demo-block

Weekly Downloads

2

Version

0.3.3

License

MIT

Unpacked Size

60.7 kB

Total Files

6

Last publish

Collaborators

  • quietcoder