mirror of https://github.com/sveltejs/svelte
Don't use shorthand binding in textarea example (#3256)
parent
b6e875ba03
commit
0a3818fb9b
@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import marked from 'marked';
|
||||
let value = `Some words are *italic*, some are **bold**`;
|
||||
let text = `Some words are *italic*, some are **bold**`;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
textarea { width: 100%; height: 200px; }
|
||||
</style>
|
||||
|
||||
<textarea bind:value></textarea>
|
||||
<textarea bind:value={text}></textarea>
|
||||
|
||||
{@html marked(value)}
|
||||
{@html marked(text)}
|
Loading…
Reference in new issue