Skip to content

Commit c3ee50b

Browse files
committed
remove any markup from ContentShrinker children
1 parent ca6937f commit c3ee50b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/ContentShrinker/ContentShrinker.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Default = TemplateFull.bind({});
1616
Default.args = {
1717
children: (
1818
<>
19-
simple text child
19+
simple text child http://example.com/
2020
<HtmlContentBlock>
2121
<LoremIpsum p={10} avgSentencesPerParagraph={10} random={false} />
2222
</HtmlContentBlock>

src/components/ContentShrinker/ContentShrinker.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ export const ContentShrinker = ({ className, children, ...otherOverflowProps }:
4747
return (
4848
<OverflowText
4949
className={`${eccgui}-contentshrinker` + (className ? ` ${className}` : "")}
50-
passDown
5150
{...otherOverflowProps}
5251
>
53-
<Markdown removeMarkup inheritBlock>
52+
<Markdown removeMarkup inheritBlock allowedElements={[]}>
5453
{onlyText(children)}
5554
</Markdown>
5655
</OverflowText>

0 commit comments

Comments
 (0)