0.5.0 • Published 1 year ago
@accuser/svelte-unist v0.5.0
Svelte Unist
Transform Unist into Svelte components.
Installing
Add the @accuser/svelte-unist package dependency to your Svelte / SvelteKit project:
npm install --save-dev @accuser/svelte-unistUsage
Markdown AST
<script>
import { Unist } from '@accuser/svelte-unist';
const ast = { type: 'root', children: [{ type: 'text', value: 'Hello, World!' }] };
</script>
<Unist {ast} />Test
npm testLicense
Copyright
Copyrigth © 2024 Matthew Gibbons