0.0.23 • Published 2 years ago

@svelte-parts/markdown v0.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@svelte-parts/markdown

For markdown blocks

Demo

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)
0.0.23

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.20

3 years ago

0.0.19

3 years ago