Overview
Svelte Markdown is a markdown parser that renders into Svelte Components. It is inspired by ReactMarkdown and provides a convenient way to parse markdown source and render it as Svelte components.
Features
- Renders markdown into Svelte Components
- Accepts markdown source as string or array of tokens
- Supports custom renderers for different types of nodes
- Fires events for accessing raw tokens array
Installation
You can install Svelte Markdown using npm with the following command:
npm install svelte-markdown
If you prefer using yarn, you can install it with:
yarn add svelte-markdown
Summary
Svelte Markdown is a powerful tool for parsing and rendering markdown in Svelte applications. It offers features like custom renderers, event handling, and support for inline markdown. With easy installation and usage, it is a convenient choice for developers working with Svelte and markdown.