0.2.0-next.12 • Published 12 months ago
@accuser/svelte-markdown-provider v0.2.0-next.12
Svelte Markdown Provider
Transforms Markdown source (as a string
) or a Markdown AST into Svelte components.
!NOTE You probably don't want this - look at mdsvex or svelte-markdown instead.
Installing
Add the @accuser/svelte-markdown-provider
package dependency to your Svelte / SvelteKit project:
npm install --save-dev @accuser/svelte-markdown-provider
Usage
Markdown string
<script>
import { Markdown } from '@accuser/svelte-markdown-provider';
const source = 'Hello, World!';
</script>
<Markdown {src} />
Markdown AST
<script>
import { Markdown } from '@accuser/svelte-markdown-provider';
const ast = {
type: 'root',
children: [{
type: 'paragraph',
children: [{
type: 'text',
value: 'Hello, World!'
}]
}]
};
</script>
<Markdown {ast} />
0.2.0-next.11
12 months ago
0.2.0-next.12
12 months ago
0.2.0-next.10
12 months ago
0.2.0-next.9
12 months ago
0.2.0-next.8
12 months ago
0.2.0-next.7
12 months ago
0.2.0-next.6
12 months ago
0.2.0-next.3
1 year ago
0.2.0-next.2
1 year ago
0.2.0-next.1
1 year ago
0.2.0-next.5
1 year ago
0.2.0-next.4
1 year ago
0.1.4
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago