From 8f057503a8bac5f249523ee06329f4c7a0a2b148 Mon Sep 17 00:00:00 2001 From: A-F-V Date: Sat, 1 Jul 2023 19:00:32 +0100 Subject: [PATCH] added remark --- package.json | 1 + src/plugins/Socrates/MessageView.tsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index adcb6e3..18c3c9c 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "react-spinners": "^0.13.8", "redux": "^4.2.1", "rehype-katex": "^6.0.3", + "remark-gfm": "^3.0.1", "remark-math": "^5.1.1" } } diff --git a/src/plugins/Socrates/MessageView.tsx b/src/plugins/Socrates/MessageView.tsx index 5e2bec2..6a631d7 100644 --- a/src/plugins/Socrates/MessageView.tsx +++ b/src/plugins/Socrates/MessageView.tsx @@ -4,6 +4,7 @@ import React from 'react'; import remarkMath from 'remark-math'; import rehypeKatex from 'rehype-katex'; import { AgentData } from './ConversationAgent'; +import remarkGfm from 'remark-gfm'; export default function MessageView({ message, @@ -53,7 +54,10 @@ export default function MessageView({ )} - + {message.text}