mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Fix:修复公式中的大于小于号导致导出异常
This commit is contained in:
parent
ce49fcb511
commit
bd0af7ac02
@ -58,7 +58,10 @@ class Formula {
|
||||
let node = super.create(value)
|
||||
if (typeof value === 'string') {
|
||||
katex.render(value, node, self.config)
|
||||
node.setAttribute('data-value', value)
|
||||
node.setAttribute(
|
||||
'data-value',
|
||||
value.replace(/</g, '<').replace(/>/g, '>')
|
||||
)
|
||||
}
|
||||
return node
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user