preserve listing from LLM response

This commit is contained in:
timothycarambat 2024-02-07 13:03:10 -08:00
parent a01d4b847e
commit 500e53dc8a

View File

@ -43,7 +43,9 @@ const markdown = markdownIt({
"</pre></div>"
);
},
});
})
// Enable <ol> and <ul> items to not assume an HTML structure so we can keep numbering from responses.
.disable("list");
export default function renderMarkdown(text = "") {
return markdown.render(text);