trying different markdown library for proper list styling

This commit is contained in:
Daniel Avila 2023-02-24 23:16:19 -05:00
parent 34ebd97c9d
commit 78c9f3dc74
8 changed files with 4352 additions and 132 deletions

View file

@ -43,11 +43,8 @@ export default function handleSubmit({
const data = JSON.parse(e.data);
let text = data.text || data.response;
if (data.message) {
// text = text.match(newLineRegex) ? text.replace(newLineRegex, '') : text;
// console.log(data);
messageHandler(text);
} else if (data.final) {
console.log(data);
convoHandler(data);
} else {
console.log('initial', data);