Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown和latex 一起渲染,或导致latex不显示 #627

Open
vanteking opened this issue Dec 15, 2024 · 0 comments
Open

markdown和latex 一起渲染,或导致latex不显示 #627

vanteking opened this issue Dec 15, 2024 · 0 comments

Comments

@vanteking
Copy link

vanteking commented Dec 15, 2024

使用环境

使用 cli 方式运行的uniapp,基于 vue3

问题描述

需要渲染一段文字,里面包括了markdown和latex ,发现同时渲染会导致 latex公式不显示,去掉markdown渲染,latex就正常显示了

复现方式

内容:

var cnt=ref('根据《GB50470-2008 油气输送管道线路工程抗震技术规范》和《JTG B02-2013 公路工程抗震规范》,液化等级的划分主要依据液化指数 $I _ {\\mathrm{IE}}$。具体划分如下:\n\n1. **《GB50470-2008 油气输送管道线路工程抗震技术规范》**:\n - **轻微液化**:$0 < I _ {\\mathrm{IE}} \\leq 3.5$\n - **中等液化**:$3.5 < I _ {\\mathrm{IE}} \\leq 10$\n - **严重液化**:$I _ {\\mathrm{IE}} > 10$\n\n2. **《JTG B02-2013 公路工程抗震规范》**:\n - **轻微液化**:\n - **判别深度为 15 m**:$0 < I _ {\\mathrm{IE}} \\leq 5$\n - **判别深度为 20 m**:$0 < I _ {\\mathrm{IE}} \\leq 6$\n - **中等液化**:\n - **判别深度为 15 m**:$5 < I _ {\\mathrm{IE}} \\leq 15$\n - **判别深度为 20 m**:$6 < I _ {\\mathrm{IE}} \\leq 18$\n - **严重液化**:\n - **判别深度为 15 m**:$I _ {\\mathrm{IE}} > 15$\n - **判别深度为 20 m**:$I _ {\\mathrm{IE}} > 18$\n\n这些划分标准帮助工程师根据不同深度的液化指数来评估场地的液化等级,从而采取相应的抗震措施。');
同时使用markdown和latex 效果:
<mp-html :content="cnt" :markdown="true"/>
微信截图_20241215205020

只使用latex 效果:
<mp-html :content="cnt" />
微信截图_20241215205132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant