Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: update doc-content.vue renderer to marked v5+ token API
ochan.kwon0c23c3ffb3a3
diff --git a/frontend/src/components/doc-content.vue b/frontend/src/components/doc-content.vueindex 56ab17181..bb0a6131d 100644--- a/frontend/src/components/doc-content.vue+++ b/frontend/src/components/doc-content.vue@@ -172,7 +172,7 @@ const checkImage = (url) => {img.src = url;});};-renderer.image = function (href: string, title: string | null, text: string) {+renderer.image = function ({href, title, text}) {if (!isValidImageURL(href)) {return `<p>${t('error.invalidImageLink')}</p>`;}@@ -185,7 +185,7 @@ renderer.image = function (href: string, title: string | null, text: string) {};// 自定义代码块渲染器,只显示语言标签-renderer.code = function (text: string, lang?: string) {+renderer.code = function ({text, lang}) {// Mermaid 图表处理if (lang === 'mermaid') {// 生成唯一ID