mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-13 23:16:55 +00:00
fix: rawHtml type
This commit is contained in:
@@ -26,6 +26,5 @@ marked.setOptions(markedOptions);
|
||||
// Basic markdown to HTML conversion with sanitization
|
||||
export default function markdownToHtml(markdown: string) {
|
||||
const rawHtml = marked.parse(markdown);
|
||||
console.log(rawHtml);
|
||||
return DOMPurify.sanitize(rawHtml);
|
||||
return DOMPurify.sanitize(rawHtml as string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user