-
Notifications
You must be signed in to change notification settings - Fork 62
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编辑公式乱码 #102
Comments
这边也遇到了这个问题,我的猜测是他的 markdown 渲染和 katex 渲染是拆开的。 Lines 29 to 40 in 5115f92
遇到下面的 markdown 文本:
在渲染 markdown 时是不管两个下划线是不是在
转为 html 后再开始公式渲染,至于怎么渲染法应该还是看这个文件,表示看的有点晕。 暂时没有什么好的解决方法,dirty hack 倒是有一个,但只限于解决公式中的下划线被识别为斜体的问题。 jnoj/vendor/cebe/markdown/inline/EmphStrongTrait.php Lines 37 to 38 in 5115f92
把这个判断条件删掉(别忘了前面的 $marker === '_' && preg_match('/^__((?>\\\\_|[^_]|_[^_]*_)+?)__/us', $text, $matches) 这里同理: jnoj/vendor/cebe/markdown/inline/EmphStrongTrait.php Lines 57 to 58 in 5115f92
删掉判断条件:
当然编辑 markdown 文本,如果要把一段文字设置为斜体,就只能 要注意的是,如果后面用 composer 更新依赖项,这些改动可能会被覆盖。 如果还是有乱码的情况,考虑先上传图片(捂脸)? |
No description provided.
The text was updated successfully, but these errors were encountered: