diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx index c21ffa9f9..f73ed9a43 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.tsx @@ -8,7 +8,9 @@ import { CustomListItem, CustomParagraph, CustomBlockquote, - CustomSpan + CustomSpan, + CustomOrderedList, + CustomUnorderedList } from './AppMarkdownCommon'; import { useMemoizedFn } from '@/hooks'; import styles from './AppMarkdown.module.css'; @@ -40,6 +42,8 @@ const AppMarkdownBase: React.FC<{ const listItem = useMemoizedFn((props) => ); const blockquote = useMemoizedFn((props) => ); const span = useMemoizedFn((props) => ); + const ol = useMemoizedFn((props) => ); + const ul = useMemoizedFn((props) => ); const li = useMemoizedFn((props) => ); const p = useMemoizedFn((props) => ); const h1 = useMemoizedFn((props) => ); @@ -65,7 +69,9 @@ const AppMarkdownBase: React.FC<{ h4, h5, h6, - li + li, + ol, + ul }; }, []); diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx index 2c718bfdf..69351ef72 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx @@ -114,6 +114,42 @@ export const CustomList: React.FC< ); }; +export const CustomOrderedList: React.FC< + { + children?: React.ReactNode; + markdown: string; + showLoader: boolean; + } & ExtraPropsExtra +> = ({ children, markdown, showLoader, ...rest }) => { + return ( +
    + {children} +
+ ); +}; + +export const CustomUnorderedList: React.FC< + { + children?: React.ReactNode; + markdown: string; + showLoader: boolean; + } & ExtraPropsExtra +> = ({ children, markdown, showLoader, ...rest }) => { + return ( +
    + {children} +
+ ); +}; + export const CustomListItem: React.FC< { children?: React.ReactNode; @@ -124,7 +160,7 @@ export const CustomListItem: React.FC< return (
  • {children} diff --git a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Text/ReasoningMessage_Text.tsx b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Text/ReasoningMessage_Text.tsx index c08a3cb28..63326e1b9 100644 --- a/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Text/ReasoningMessage_Text.tsx +++ b/web/src/controllers/ReasoningController/ReasoningMessages/ReasoningMessage_Text/ReasoningMessage_Text.tsx @@ -11,6 +11,8 @@ export const ReasoningMessage_Text: React.FC = React.memo (x) => (x?.reasoning_messages[reasoningMessageId] as BusterChatMessageReasoning_text)?.message )!; + console.log('message', message); + return (