feat: modify some propmt in DEFAULT_INPUT_TEMPLATE about expressing latex

This commit is contained in:
butterfly
2024-04-08 19:27:22 +08:00
parent 9b982b408d
commit 02b0e79ba3
2 changed files with 13 additions and 5 deletions

View File

@@ -135,10 +135,10 @@ function escapeBrackets(text: string) {
}
function _MarkDownContent(props: { content: string }) {
const escapedContent = useMemo(
() => escapeBrackets(escapeDollarNumber(props.content)),
[props.content],
);
const escapedContent = useMemo(() => {
console.log("================", props.content);
return escapeBrackets(escapeDollarNumber(props.content));
}, [props.content]);
return (
<ReactMarkdown