0.0.23 • Published 3 years ago
@svelte-parts/markdown v0.0.23
@svelte-parts/markdown
For markdown blocks
Try it out in the svelte REPL
Install
npm install @svelte-parts/markdown
Usage
<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
)