mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-02 08:50:11 +02:00
preserve listing from LLM response
This commit is contained in:
parent
a01d4b847e
commit
500e53dc8a
@ -43,7 +43,9 @@ const markdown = markdownIt({
|
|||||||
"</pre></div>"
|
"</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 = "") {
|
export default function renderMarkdown(text = "") {
|
||||||
return markdown.render(text);
|
return markdown.render(text);
|
||||||
|
Loading…
Reference in New Issue
Block a user