-
Notifications
You must be signed in to change notification settings - Fork 533
Open
Labels
🚀enhancementNew feature or requestNew feature or request
Description
背景
目前需要在cherry实例化之前加载mermaid,比较麻烦。
目标
希望在兼容旧方式的基础上,实现类似公式的实现方式:
engine: {
syntax: {
mathBlock: {
engine: 'MathJax', // katex或MathJax
// engine: 'katex', // katex或MathJax
src: 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js', // 如果使用MathJax plugins,则需要使用该url通过script标签引入
// src: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js',
// css: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css', // 如果使用katex,则还需要引入css(如果是MathJax,则不需要)
},
}
}Metadata
Metadata
Assignees
Labels
🚀enhancementNew feature or requestNew feature or request