4.0.1 • Published 8 months ago

svelte-exmarkdown v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

4.0.1

8 months ago

4.0.0

8 months ago

3.0.4

1 year ago

3.0.5

1 year ago

4.0.0-next.0

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.2-next.1

1 year ago

3.0.2-next.0

1 year ago

3.0.1

2 years ago

3.0.0

2 years ago

3.0.0-next.0

2 years ago

2.1.0

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

2.0.0

2 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago