http://mathquill.com/

https://github.com/mathquill/mathquill

1.引入相关的js和css

<!--公式编译-->
	<link href="../../common/js/mathquill-0.10.1/mathquill.css" type="text/css" rel="stylesheet">
	<script src="../../common/js/mathquill-0.10.1/mathquill.min.js"></script>

2.对所有编辑过的公式进行转译

使用MathQuill转换数学公式

 var MQ = MathQuill.getInterface(2);
                var mathC = $('.mathquill-embedded-latex');
                for(var i=0;i<mathC.length;i++){
                    MQ.StaticMath(mathC[i]);
                }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-07-20
  • 2021-12-06
猜你喜欢
  • 2021-09-22
  • 2021-11-23
  • 2021-12-31
  • 2022-01-07
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案