diff --git a/CHANGELOG b/CHANGELOG index 400f2d2..3cc4caf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ Dates should be in`YYYY-MM-DD` format and versions are in [semantic versioning]( ### Fixed - Fixed rendering of numbered lists. +- Autogrow markup box height. ## 0.5.1 diff --git a/src/lib/MarkupView.svelte b/src/lib/MarkupView.svelte index 4fa51e4..90dd8bc 100644 --- a/src/lib/MarkupView.svelte +++ b/src/lib/MarkupView.svelte @@ -26,7 +26,7 @@ const errors = getErrors(); - $: scrollHeight = input?.scrollHeight ?? height; + $: scrollHeight = revisedText ? input?.scrollHeight ?? height : height; // Not an edit function, just a text field? Update the text immediately. $: if (edit === undefined) markup = revisedText;