vue 中显示带有 latex 数学语法的 html 内容的方案
資深大佬 : zxCoder 4
查了好多也没找到有效的做法
后台获取到的是一个字符串,是 html 格式,然后里面带有一些 latex 公式,例如
"Then, Mikaela will count and give you the number of pairs of vertices $$$(s, t)$$$ where $$$s in S$$$ and $$$t in T$$$ such that the simple path from $$$s$$$ to $$$t$$$ contains $$$v$$$.</p><p>Mikaela the Goddess is busy and will be available to answer at most $$$11,111$$$ questions.</p><p>This is your only chance. Your task is to determine the tree and report its edges.</p>"
用 vue 的 v-html 可以直接展示 html,但是其中的 latex 公式不知道要怎么办,网上找的几种 mathjax 的方法都不好用而且很麻烦
大佬有話說 (2)