You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/site/content/examples/binding-textarea/App.html

15 lines
244 B

<script>
import marked from 'marked';
export let markdown;
</script>
<textarea bind:value={markdown} resize="none"></textarea>
<div class="output">{@html marked(markdown)}</div>
<style>
textarea {
width: 100%;
height: 50%;
}
</style>