Home
Softono

Svelte Exmarkdown

Open source MIT TypeScript
348
Stars
11
Forks
22
Issues
2
Watchers
3 months
Last Commit

 About Svelte Exmarkdown

Svelte component to render markdown.

Platforms

Web Self-hosted

Languages

TypeScript

Need Help Installing Svelte Exmarkdown?

We provide expert installation service for this software. Our team will install, configure, and secure Svelte Exmarkdown on your server. plans start at just $30.

Svelte Exmarkdown

View on GitHub

svelte-exmarkdown

CI codecov License MIT

Svelte component to render markdown. Dynamic and Extensible.

Motivation

svelte-markdown is a good component package. However, it is not extensible. You cannot use custom syntax(e.g. KaTeX).

MDsveX is another good package. However, it is a preprocessor. Not suitable for dynamic rendering.

We need pluggable and dynamic markdown renderer in svelte like react-markdown.

Usage

<script>
	import Markdown from 'svelte-exmarkdown';
	let md = $state('# Hello world!');
</script>

<textarea bind:value={md}></textarea>
<Markdown {md} />

with GFM

<script>
	import Markdown from 'svelte-exmarkdown';
	import { gfmPlugin } from 'svelte-exmarkdown/gfm';
	let md = $state('# Hello world!');
	const plugins = [gfmPlugin()];
</script>

<textarea bind:value={md}></textarea>
<Markdown {md} {plugins} />

Playground & Documents

https://ssssota.github.io/svelte-exmarkdown