Merge branch 'main' into fix/custom-field-number-type

This commit is contained in:
markkaylor 2022-10-12 14:51:35 +02:00 committed by GitHub
commit 8cd85e9d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ import sanitizeHtml from './utils/satinizeHtml';
import Wrapper from './Wrapper';
const PreviewWysiwyg = ({ data }) => {
const html = useMemo(() => sanitizeHtml(md.render(data || '')), [data]);
const html = useMemo(() => sanitizeHtml(md.render(data.replaceAll('\\n', '\n') || '')), [data]);
return (
<Wrapper>