mdjs

Source file extensions: .md

mdjs is a format that allows you to use JavaScript with Markdown, to create interactive demos. It does so by "annotating" JavaScript that should be executed in Markdown.

You can use a markdown code block with js script:

```js script
// execute me
```

You can import modules from npm by using their bare name:

```js script
import 'demo-wc-card';
```

You can import a module from the component by using a relative path ./:

```js script
import './index.js';
```

References

Quick example

doc.md

## Import `demo-wc-card` custom-element

```js script
import 'demo-wc-card/demo-wc-card.js';
```


## Live result

<demo-wc-card header="HEADER">Hello World</demo-wc-card>