trigger markdown rerender on symbols change

This commit is contained in:
Dallin Romney 2024-12-09 02:32:53 -08:00
parent b0dc38cd6c
commit 9cb72ef4bc

View file

@ -317,7 +317,7 @@ const StyledMarkdownPreview = memo(function StyledMarkdownPreview(
// some patches to source markdown are applied here:
fixDoubleDollarNewLineLatex(patchNestedMarkdown(props.source ?? "")),
);
}, [props.source]);
}, [props.source, allSymbols]);
return (
<StyledMarkdown fontSize={getFontSize()}>{reactContent}</StyledMarkdown>