memos icon indicating copy to clipboard operation
memos copied to clipboard

在一个 Memo中 有多个 mermaid 块,可能导致生成的svg ID是一样的,导致渲染不对。

Open QiTianQingShui opened this issue 11 months ago • 1 comments

Describe the bug

比如: f:

 flowchart LR
  foo-->bar
  bar-->baz

s:

 flowchart LR
  a-->b

正常情况下: image

多次切换或刷新,不定时出现svg ID一致: image

Steps to reproduce

  1. 在一个 Memo中添加多个 mermaid
  2. 通过刷新,功能切换
  3. 不时出现 渲染出的svg ID是一样的,导致样式错误。

The version of Memos you're using

v0.20.0

Screenshots or additional context

2024-03-03-20-10-30

QiTianQingShui avatar Mar 03 '24 12:03 QiTianQingShui

Issue is not in English. It has been translated automatically.


Title: If there are multiple mermaid blocks in a Memo, the generated svg ID may be the same, resulting in incorrect rendering.

Issues-translate-bot avatar Mar 03 '24 12:03 Issues-translate-bot

Sorry, I cannot reproduce in the latest version. Maybe needs more context.

boojack avatar Mar 12 '24 15:03 boojack