fix: latex支持"\["公式支持 - #606bug #661
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix:修复latex公式不支持展示"[".
deepseek-AI回答都是"["格式显示公式,公司对接的是deepseek-AI,发现公式显示错误,已修复,顺带修复公式中%分号显示错误
数据参考:
"根据中国个人所得税法,您作为老师在外讲课所得属于劳务报酬,需按以下步骤计算税前金额:\n\n---\n\n### 1. 应纳税所得额计算\n劳务报酬每次收入超过4000元时,先扣除20%的费用,剩余部分为应纳税所得额:\n\[\n\text{应纳税所得额} = \text{税前金额} \times (1 - 20\%) = 0.8X\n\]\n\n---\n\n### 2. 预扣税率\n根据应纳税所得额,适用三级超额累进税率:\n- ≤20,000元:20%(速算扣除数0)\n- 20,000~50,000元:30%(速算扣除数2000)\n- >50,000元:40%(速算扣除数7000)\n\n---\n\n### 3. 方程推导\n已知税后收入为44,560元,设税前金额为\( X \),则:\n\[\nX - \text{预扣税款} = 44,560\n\]\n其中,预扣税款公式为:\n\[\n\text{预扣税款} = 0.8X \times \text{税率} - \text{速算扣除数}\n\]\n\n通过试算确定适用税率档次:\n- 若\( 0.8X > 20,000 \)且\( 0.8X \leq 50,000 \),适用30%税率:\n\[\n\text{预扣税款} = 0.8X \times 30\% - 2000\n\]\n代入方程:\n\[\nX - (0.24X - 2000) = 44,560 \quad \Rightarrow \quad 0.76X = 42,560 \quad \Rightarrow \quad X = \frac{42,560}{0.76} = 56,000\n\]\n\n---\n\n### 4. 验证\n- 应纳税所得额:\( 56,000 \times 0.8 = 44,800 \)元(适用30%税率)\n- 预扣税款:\( 44,800 \times 30\% - 2000 = 11,440 \)元\n- 税后收入:\( 56,000 - 11,440 = 44,560 \)元(与已知一致)\n\n---\n\n### 结论\n对方税前应支付的金额为:\n\[\n\boxed{56,\!000\ \text{元}}\n\] 这些数学公式用$$来声明\n\n"