Skip to content

Commit

Permalink
feat: support config mathjax installed by npm
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei686 committed Mar 15, 2024
1 parent e9154f6 commit 872ec1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export default class Engine {
const { syntax } = engine;
const { plugins } = syntax.mathBlock;
// 未开启公式
if (!isBrowser() || (!syntax.mathBlock.src && !syntax.inlineMath.src)) {
if (
!isBrowser() ||
(!syntax.mathBlock.src && !syntax.inlineMath.src && !syntax.mathBlock.engine && !syntax.inlineMath.engine)
) {
return;
}
// 已经加载过MathJax
Expand Down

0 comments on commit 872ec1e

Please sign in to comment.