@svelte-parts/markdown
v0.0.23
Published
Markdown blocks in svelte
Readme
@svelte-parts/markdown
For markdown blocks
Try it out in the svelte REPL
Install
npm install @svelte-parts/markdownUsage
<Markdown>
# Title
## List
1. one
2. two
3. three
</Markdown>Uses marked to convert to HTML and is sanitized with dompurify. Both can be configured with the optional attributes:
dompurifyConfig(type:DOMPurify.Config)markedExtensions(type:MarkedExtension[])markedOptions(type:MarkedOptions)
