Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[错误]: Mermaid图表报错语法错误 #1508

Open
2 tasks done
sinojelly opened this issue Feb 12, 2025 · 2 comments
Open
2 tasks done

[错误]: Mermaid图表报错语法错误 #1508

sinojelly opened this issue Feb 12, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@sinojelly
Copy link

Issue 检查清单

  • 我已经查看了置顶 Issue 并搜索了现有的 Issue,但没有找到类似的问题。
  • 正确填写了 Issue 标题。

平台

Windows

版本

0.9.21

错误描述

图片显示报错:

源码:
graph LR A[原始HDR信号] --> B[基础层编码] B --> C[SDR兼容层] A --> D[动态元数据提取] D --> E[增强层编码] C + E --> F{双层视频文件}

重现步骤

  1. DeepSeek R1模型提问:HDR的单层和双层是什么意思?
  2. 就会出现这个图。

预期行为

正常显示图片。

相关日志输出

附加信息

No response

@sinojelly sinojelly added the bug Something isn't working label Feb 12, 2025
@Rundao
Copy link
Collaborator

Rundao commented Feb 12, 2025

是最后一行通过+表示多个节点连接的语法不受支持。报错信息为

Error: Error: Parse error on line 6:
...--> E[增强层编码] C + E --> F{双层视频文件}
----------------------^
Expecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING'

修改后的代码为

graph LR
    A[原始HDR信号] --> B[基础层编码]
    B --> C[SDR兼容层]
    A --> D[动态元数据提取]
    D --> E[增强层编码]
    C --> F{双层视频文件}
    E --> F
graph LR
    A[原始HDR信号] --> B[基础层编码]
    B --> C[SDR兼容层]
    A --> D[动态元数据提取]
    D --> E[增强层编码]
    C --> F{双层视频文件}
    E --> F
Loading

@CooperCao
Copy link

确实非常容易出现语法错误;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants