mirror of https://github.com/sveltejs/svelte
16 lines
225 B
16 lines
225 B
6 years ago
|
<script>
|
||
3 years ago
|
import { marked } from 'marked';
|
||
6 years ago
|
let value = `Some words are *italic*, some are **bold**`;
|
||
|
</script>
|
||
|
|
||
4 years ago
|
{@html marked(value)}
|
||
|
|
||
2 years ago
|
<textarea bind:value />
|
||
4 years ago
|
|
||
4 years ago
|
<style>
|
||
2 years ago
|
textarea {
|
||
|
width: 100%;
|
||
|
height: 200px;
|
||
|
}
|
||
4 years ago
|
</style>
|