@accuser/svelte-unist
v0.5.0
Published
Transform [Unist](https://github.com/syntax-tree/unist) into Svelte components.
Downloads
106
Readme
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-unist
Usage
Markdown AST
<script>
import { Unist } from '@accuser/svelte-unist';
const ast = { type: 'root', children: [{ type: 'text', value: 'Hello, World!' }] };
</script>
<Unist {ast} />
Test
npm test
License
Copyright
Copyrigth © 2024 Matthew Gibbons