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

[Feat] 未提供的标题选择器和mdit ::: 选择器在阅读模式下的支持 #44

Closed
LincZero opened this issue Aug 18, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@LincZero
Copy link
Collaborator

相较于另外四个选择器(代码块/引用块/列表/表格),这两个在阅读模式下的实现更麻烦的(不是难,就是麻烦)

会做的,但可能要两三个版本更新的周期

@LincZero LincZero added the enhancement New feature or request label Aug 18, 2024
@calmwaves111
Copy link

期待😉

@LincZero
Copy link
Collaborator Author

a294bb0

已提供,发布后关闭

@calmwaves111
Copy link

好像是有些问题
下面是在3.0.6中的效果,左边是纯文本,右边是在ob的实时预览下,ob的阅读模式下是不生效的
image

升级到3.1.0后 实时预览下也没效果了,阅读模式也不变化,而且编辑的时候有卡卡的感觉,有时候还会吞掉一些字符
image
image

@LincZero
Copy link
Collaborator Author

LincZero commented Aug 27, 2024

title2code是自定义的吧……

不过阅读模式确实没生效了……奇怪,我再看看

@LincZero LincZero reopened this Aug 27, 2024
@calmwaves111
Copy link

calmwaves111 commented Aug 27, 2024

title2code不是自定义的,我就只装上了插件,然后在正文里这么写,我还不知道怎么自定义

@LincZero
Copy link
Collaborator Author

阅读模式不生效的问题

需要清除阅读模式的缓存:关闭标签页重新打开即可

原因:
切换到阅读模式的对的,但是当打开过一次阅读模式后,ob会缓存一遍页面。
此时如果切换回源码/实时模式编辑内容,编辑完后再切换回阅读模式,ob不会去识别未经改动的部分,而是只看分析变动的部分。此时会导致AnyBlock识别异常。

卡顿问题

可能是新的别名系统导致的,我看看怎么优化下。相关进展到新issue #48

@LincZero
Copy link
Collaborator Author

我傻了,有时可以有时不行,每次debug时他又突然可以用了。然后某个时间点又莫名其妙不能用了

明天好好检查一下

@LincZero LincZero reopened this Aug 27, 2024
@calmwaves111
Copy link

现在是3.1.1,好像出现了别的问题

image

@LincZero
Copy link
Collaborator Author

3.1.2 修了,避免问题还存在,过几天再关闭这个issue

@calmwaves111
Copy link

image

我这边是完美了,现在是这样写的 [title|quote|add(> [!note])]

但是像title2quote,或者code2quote是用不了的

@LincZero
Copy link
Collaborator Author

我不记得插件有 title2quote 和 code2quote 命令啊

你可以用 [quote][X|quote] 来代替

如果你喜欢用你自己的命名,那就在别名系统里注册,让 [title2quote] 等同于 [quote]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants