<script lang="ts">
  export let value = '';
  export let onChange: (value: string) => void = () => {};
</script>

<textarea
  aria-label="Markdown 编辑器"
  class="markdown-editor"
  spellcheck="false"
  bind:value
  on:input={() => onChange(value)}
></textarea>
