Demo:公式katex库的配置从simple-mind-map库中获取
This commit is contained in:
parent
eb50b70214
commit
c0fb1e8db8
@ -78,10 +78,10 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
this.list = formulaList.map(item => {
|
this.list = formulaList.map(item => {
|
||||||
return {
|
return {
|
||||||
overview: window.katex.renderToString(item, {
|
overview: window.katex.renderToString(
|
||||||
throwOnError: false,
|
item,
|
||||||
output: 'mathml'
|
this.mindMap.formula.getKatexConfig()
|
||||||
}),
|
),
|
||||||
text: item
|
text: item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user