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

Turn off math warnings in Chinese #8963

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

TinkMingKing
Copy link
Contributor

@TinkMingKing TinkMingKing commented Aug 13, 2023

  • Please commit to the dev branch
  • For contributing new features, please supplement and improve the corresponding user guide documents
  • For bug fixes, please describe the problem and solution via code comments
  • For text improvements (such as typos and wording adjustments), please submit directly

如果数学公式中使用中文,会产生大量警告,通过设置optionsstrict mode,其默认为warn,单独屏蔽错误码为unicodeTextInMathMode的情况,因为在数学模式下使用 Unicode 文本字符会警告,将其设置为ignore以消除,同时不影响其他错误输出,当然,也可以直接设置为strict:false,但不够稳妥

@Vanessa219 Vanessa219 merged commit ae25993 into siyuan-note:dev Aug 15, 2023
2 checks passed
@Vanessa219 Vanessa219 self-requested a review August 15, 2023 00:30
@Vanessa219 Vanessa219 added this to the 2.10.0 milestone Aug 15, 2023
@Vanessa219 Vanessa219 changed the title Update mathRender.ts Turn off math warnings in Chinese Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants