Skip to content

Commit 9e975c2

Browse files
committed
Process remark only when markdown is valid
1 parent c2e5303 commit 9e975c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/MarkdownRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ const MarkdownRender: React.FC<MarkdownRenderProps> = ({
207207
editing,
208208
}) => {
209209
const [html, setHtml] = useState(
210-
ssrEnabled
210+
ssrEnabled && markdown
211211
? filter(
212212
remark()
213213
.use(remarkParse)

0 commit comments

Comments
 (0)