jin-yufeng/mp-html

latex公式渲染报错,uniapp 网页端 vue2

ssssshql opened this issue · 0 comments

使用环境

uniapp vue2版本

问题描述

已经按照要求生成了带插件的组件,引入后使用latex公式报错,不使用则不报错
image

复现方式

<template>
  <view>
    <mp-html :content="html"/>
  </view>
</template>
<script>
  import mpHtml from '@/components/mp-html/mp-html'
  export default {
    // HBuilderX 2.5.5+ 可以通过 easycom 自动引入
    components: {
      mpHtml
    },
    data () {
      return {
        html: '$ \\sqrt{x}  $'
      }
    }
  }
</script>

image