Skip to content

Commit ee4d1c6

Browse files
Fix prettier issue
1 parent 836c76b commit ee4d1c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/renderers/quote/index.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ const Quote = ({
3939
return (
4040
<blockquote {...blockquoteprops}>
4141
{data.text &&
42-
data.text.split('\n\n').map((paragraph, i) => (
43-
<p key={i}>
44-
{ReactHtmlParser(paragraph
45-
.split('\n')
46-
.reduce((total, line) => [total, '<br />', line].join('')))}
47-
</p>
48-
))}
42+
data.text
43+
.split('\n\n')
44+
.map((paragraph, i) => (
45+
<p key={i}>
46+
{ReactHtmlParser(paragraph.split('\n').reduce((total, line) => [total, '<br />', line].join('')))}
47+
</p>
48+
))}
4949
{data.caption && <footer>{ReactHtmlParser(data.caption)}</footer>}
5050
</blockquote>
5151
);

0 commit comments

Comments
 (0)