hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.4k stars 917 forks source link

[Question] CodeStyle这个字段不生效 #713

Open tchlexder opened 2 years ago

tchlexder commented 2 years ago

在使用CodeStyle修改的时候,没办法修改默认样式另外高亮也不生效

coderYcc commented 2 years ago

前几天可以识别代码块,最近几天无法识别代码块了

Xxx-Bin commented 2 years ago

mounted(){ this.$refs.md.codeStyleChange('github', true) }

手动触发下可以加载。 判断是否触发codeStyleChange的部分有问题

ygj6 commented 2 years ago

我们已经发布了mavon-editor@2.10.0版本,可以在新版本中测试一下问题是否还存在。并且Demo已经补充了切换codeStyle的例子,可以参考。


We have released the mavon-editor@2.10.0 version, you can test whether the issue still exists in the new version. And the demo has been added with an example of switching codeStyle, you can refer to it.

Xxx-Bin commented 2 years ago

@ygj6 我这个问题式在github-markdown-css等文件本地按需加载的时候发现的,cdnjs 加载并不会有问题。

ygj6 commented 2 years ago

@Xxx-Bin

你试试新版本,这个版本修复了部分bug,你这个问题应该解决了。


You try the new version, this version fix most of the issue, you this issue should be solved.

Related:https://github.com/hinesboy/mavonEditor/commit/e0f8183bd38ffd031544c01ddebfed9249b701fb

Xxx-Bin commented 2 years ago

@ygj6 嗯 看到了 本来也要提交pr的 发现已经有了