プロジェクト
概要
Markdown を描画する Svelte コンポーネントです。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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 = $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
関連プロジェクトを探す
読み込み中…