mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-10 03:59:20 +00:00
feat(webui): render file paths as clickable links
This commit is contained in:
parent
560c2a6228
commit
0ebd52bdb1
1 changed files with 3 additions and 1 deletions
|
|
@ -104,7 +104,9 @@ export function _drawMessage(
|
|||
contentDiv.classList.add("msg-content", ...contentClasses);
|
||||
|
||||
const spanElement = document.createElement("span"); // Wrapper span
|
||||
spanElement.innerHTML = marked.parse(content, { breaks: true });
|
||||
let processedContent = convertPathsToLinks(content);
|
||||
processedContent = convertImageTags(processedContent);
|
||||
spanElement.innerHTML = marked.parse(processedContent, { breaks: true });
|
||||
contentDiv.appendChild(spanElement);
|
||||
|
||||
addCopyButtonToElement(contentDiv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue