Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-ai-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d6df77a
authored
Nov 26, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(markdown): 临时移除mermaid SVG渲染以解决小程序异常问题
由于mermaid图表包加载在小程序环境异常,暂时移除相关渲染逻辑。
1 parent
7e9a4a76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/components/base/markdown/blocks/code.tsx
app/components/base/markdown/blocks/code.tsx
View file @
6d6df77
...
@@ -227,7 +227,8 @@ const Code: any = memo(({ inline, className, children = '', ...props }: any) =>
...
@@ -227,7 +227,8 @@ const Code: any = memo(({ inline, className, children = '', ...props }: any) =>
switch (language) {
switch (language) {
case 'mermaid':
case 'mermaid':
if (isSVG)
if (isSVG)
return <Flowchart PrimitiveCode={content} />
return <></>
// return <Flowchart PrimitiveCode={content} />
break
break
case 'echarts': {
case 'echarts': {
// Loading state: show loading indicator
// Loading state: show loading indicator
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment