0.5.0 • Published 9 months ago

@accuser/svelte-unist v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

MIT

Copyright

Copyrigth © 2024 Matthew Gibbons