From 02b0e79ba371e9de9da9095a288b902a3c8a4f0a Mon Sep 17 00:00:00 2001 From: butterfly Date: Mon, 8 Apr 2024 19:27:22 +0800 Subject: [PATCH] feat: modify some propmt in DEFAULT_INPUT_TEMPLATE about expressing latex --- app/components/markdown.tsx | 8 ++++---- app/constant.ts | 10 +++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 7c70fe1a5ac..2b036051a95 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -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 (