diff --git a/src/components/Headline/Headline.stories.svelte b/src/components/Headline/Headline.stories.svelte index a426c42d..af2cf5ec 100644 --- a/src/components/Headline/Headline.stories.svelte +++ b/src/components/Headline/Headline.stories.svelte @@ -8,13 +8,15 @@ // @ts-ignore import withCrownDocs from './stories/docs/withCrown.md?raw'; // @ts-ignore + import customHedDocs from './stories/docs/customHed.md?raw'; + // @ts-ignore import crownImgSrc from './stories/crown.png'; import Headline from './Headline.svelte'; import { withComponentDocs, - withStoryDocs, + withStoryDocs } from '$lib/docs/utils/withParams.js'; const meta = { @@ -55,6 +57,17 @@ + + + + The secret to + “The Nutcracker's” + success + + How “The Nutcracker” ballet became an American holday stapleand a financial pillar of ballet companies across the country + + + @@ -68,3 +81,22 @@ > + + \ No newline at end of file diff --git a/src/components/Headline/Headline.svelte b/src/components/Headline/Headline.svelte index 35ddfe31..a436475c 100644 --- a/src/components/Headline/Headline.svelte +++ b/src/components/Headline/Headline.svelte @@ -1,19 +1,23 @@ @@ -29,14 +33,20 @@ {section} {/if} {#if $$slots.hed} - + {:else} - {hed} + {@html marked.parseInline(hed)} {/if} - {#if dek} - {dek} + {#if $$slots.dek} + + + {:else} + {#if dek} + {@html marked(dek)} + {/if} {/if} + {#if $$slots.byline || $$slots.dateline}
How “The Nutcracker” ballet became an American holday stapleand a financial pillar of ballet companies across the country
{section}
{dek}