Update lollms_markdown_renderer.js

This commit is contained in:
Saifeddine ALOUI 2024-09-10 09:33:21 +02:00 committed by GitHub
parent f2f1f5b066
commit 1c129c5be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -419,12 +419,12 @@ class MarkdownRenderer {
}
}
async renderMarkdown(text) {
// Handle code blocks with syntax highlighting and copy button
text = await this.renderCodeBlocks(text);
// Handle Mermaid graphs first
text = await this.renderMermaidDiagrams(text);
// Handle code blocks with syntax highlighting and copy button
text = await this.renderCodeBlocks(text);
// Handle SVG graphs first
text = await this.renderSVG(text);
@ -553,4 +553,4 @@ class MarkdownRenderer {
.replace(/"/g, """)
.replace(/'/g, "'");
}
}
}