Closed stonexwx closed 2 months ago
这个有可能是文件编码格式导致的报错,建议在读文件的时候强制将编码格式设置成当前网页的编码格式~
因为rust读取的文件都是UTF-8的编码,我能确保每个文件编码是一致的
https://github.com/codemirror/codemirror5/issues/4135 可能是我们计算行号的逻辑有问题,我们尝试定位下
好的 我尝试使用 engine.makeHtml(markdown:string) 将上述markdown转换为html 在使用 engine.makeMarkdown(html:string) 转换回来,依旧会出现上述错误 目前其他文档都可以正常打开,不知道这个文档有啥魔力
破案了,new Cherry返回的对象不能被代理,vue3的ref会导致Cherry的方法产生奇奇怪怪的bug
破案了,new Cherry返回的对象不能被代理,vue3的ref会导致Cherry的方法产生奇奇怪怪的bug
兄弟,我也遇到了同样的问题,按照你的方式避免使用ref代理cherry实例,然后就正常了,我想请问下你是怎么定位到这个问题的?非常感谢
兄弟,我也遇到了同样的问题,按照你的方式避免使用ref代理cherry实例,然后就正常了,我想请问下你是怎么定位到这个问题的?非常感谢
因为官方给的那个在线api测试的地方并不会触发我遇到的bug,然后我就使用未代理过的cherry实例尝试复现,结果都是正常的,于是我就在想是不是vue的ref的问题,然后就用代理试了一下果然又不行了。于是乎我创建了一个单例模式的cherry对象为全局服务
ref代理过后,后端传过来的markdown字符串一复写进编辑器,光标就到处乱跑,还好有人遇到类似的问题,总算解决了
Describe the bug 我试图使用Tauri读取外部md文件赋值到cherry里面,其他md文件都可以正常使用,唯独一下Markdown文本会引起这个bug
To Reproduce
输出相等
原因是对于单精度浮点型在内存中以科学计数法保存,即4.3242342E7 加个1和不加一样
银行使用BigDecimal
随机数的使用
面向对象的三大特征
静态变量和实例变量的区别
静态变量不会被gc垃圾回收
静态变量存储在jvm方法区中,实例变量存储在对象堆中
类的加载顺序
cherry-markdown.esm.js:1