3.0.3 • Published 3 months ago
svelte-exmarkdown v3.0.3
svelte-exmarkdown
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 = '# Hello world!';
</script>
<textarea bind:value={md} />
<Markdown {md} />
with GFM
<script>
import Markdown from 'svelte-exmarkdown';
import { gfmPlugin } from 'svelte-exmarkdown/gfm';
let md = '# Hello world!';
const plugins = [gfmPlugin()];
</script>
<textarea bind:value={md} />
<Markdown {md} {plugins} />
Playground & Documents
4.0.0-next.0
3 months ago
3.0.3
4 months ago
3.0.2
4 months ago
3.0.2-next.1
4 months ago
3.0.2-next.0
4 months ago
3.0.1
7 months ago
3.0.0
8 months ago
3.0.0-next.0
8 months ago
2.1.0
10 months ago
1.1.8
1 year ago
1.1.7
1 year ago
2.0.0
1 year ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago