refactor: 调整bbcode纯文本换行问题

pull/13/head
moonrailgun 4 years ago
parent 7020d73223
commit f6d5321c1e

@ -2,6 +2,8 @@ import React from 'react';
import type { TagProps } from '../bbcode/type';
export const PlainText: React.FC<TagProps> = React.memo((props) => (
<pre style={{ display: 'inline' }}>{props.children}</pre>
<pre style={{ display: 'inline', whiteSpace: 'break-spaces' }}>
{props.children}
</pre>
));
PlainText.displayName = 'PlainText';

Loading…
Cancel
Save