svelte-portabletext
svelte-portabletext copied to clipboard
Extraneous whitespace around comments
Svelte preserves whitespace inside regular tags. HTML comments are stripped out by the compiler, but the whitespace around them is not, causing the component output to have extraneous newlines. This is an issue with pre
tags and white-space: pre
or pre-line
in CSS. We should remove the comments, or at least include the whitespace inside the comment delimiters.