mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
Feat:公式插件:去除将公式富文本转换为公式源码时的特殊字符转义逻辑,避免双重转换导致报错
This commit is contained in:
@@ -110,7 +110,7 @@ class Formula {
|
||||
for (const el of els)
|
||||
nodeText = nodeText.replace(
|
||||
el.outerHTML,
|
||||
`\$${htmlEscape(el.getAttribute('data-value'))}\$`
|
||||
`\$${el.getAttribute('data-value')}\$`
|
||||
)
|
||||
}
|
||||
return nodeText
|
||||
|
||||
Reference in New Issue
Block a user