Skip to content

Commit

Permalink
Merge pull request #1575 from Adslot/fix-paragraph-doc
Browse files Browse the repository at this point in the history
docs: fix paragraph doc
  • Loading branch information
xiaofan2406 authored Mar 8, 2023
2 parents 6c53242 + 24244f5 commit 4709984
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/examples/Paragraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deseru
We are seeing some of our strongest traffic and highest trust scores from global audiences than ever before</p>
<p>We're the no.1 trusted newsbrand in the UK87% of people trust what they see in The Guardian online. 79% feel it offers them something they can't get elsewhere.*</p>
`;
const [content, setContent] = React.useState(RichTextEditor.stateFromHTML(richText));
const [content, setContent] = React.useState(richText);

return (
<React.Fragment>
Expand Down Expand Up @@ -45,7 +45,7 @@ We are seeing some of our strongest traffic and highest trust scores from global
<div style={{ maxWidth: 850 }}>
<InformationBox>
<Paragraph.ReadMore briefMaxHeight={200}>
<Paragraph.HTML content={RichTextEditor.stateToHTML(content)} />
<Paragraph.HTML content={content} />
</Paragraph.ReadMore>
</InformationBox>
</div>
Expand All @@ -54,7 +54,7 @@ We are seeing some of our strongest traffic and highest trust scores from global
<h4>
<strong>Just HTML</strong>
</h4>
<Paragraph.HTML content={RichTextEditor.stateToHTML(content)} />
<Paragraph.HTML content={content} />
</React.Fragment>
);
};
Expand Down

0 comments on commit 4709984

Please sign in to comment.