mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Demo:公式katex库的配置从simple-mind-map库中获取
This commit is contained in:
parent
eb50b70214
commit
c0fb1e8db8
@ -78,10 +78,10 @@ export default {
|
||||
init() {
|
||||
this.list = formulaList.map(item => {
|
||||
return {
|
||||
overview: window.katex.renderToString(item, {
|
||||
throwOnError: false,
|
||||
output: 'mathml'
|
||||
}),
|
||||
overview: window.katex.renderToString(
|
||||
item,
|
||||
this.mindMap.formula.getKatexConfig()
|
||||
),
|
||||
text: item
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user