Files
rocket/docs/docs/markdown-javascript/preview.md
2021-01-03 16:20:47 +01:00

370 B

Markdown JavaScript >> Preview ||20

You can showcase live running code by annotating a code block with js preview-story.

```js preview-story
import { html } from 'lit-html';

export const foo = () => html` <p>my html</p> `;
```

will result in

import { html } from 'lit-html';

export const foo = () => html` <p>my html</p> `;