From 137009762d01728abf8fa4cc9c8f9f51e288865f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Feb 2021 10:04:07 +0000 Subject: [PATCH] Make paragraph respect whitespace --- packages/standard-components/src/Text.svelte | 31 ++------------------ 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/packages/standard-components/src/Text.svelte b/packages/standard-components/src/Text.svelte index 887bdec29d..ab62352694 100644 --- a/packages/standard-components/src/Text.svelte +++ b/packages/standard-components/src/Text.svelte @@ -5,38 +5,13 @@ const component = getContext("component") export let text = "" - export let className = "" - export let type = "" - - const isTag = tag => type === tag -{#if isTag('none')} - {text} -{:else if isTag('bold')} - {text} -{:else if isTag('strong')} - {text} -{:else if isTag('italic')} - {text} -{:else if isTag('emphasis')} - {text} -{:else if isTag('mark')} - {text} -{:else if isTag('small')} - {text} -{:else if isTag('del')} - {text} -{:else if isTag('ins')} - {text} -{:else if isTag('sub')} - {text} -{:else if isTag('sup')} - {text} -{:else}{text}{/if} +

{text}