-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
For inline code, ZWPS changes to ZWNBSP #11248
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
Comments
需注意:
|
This comment was marked as outdated.
This comment was marked as outdated.
这个使用光标移动就不对了,最后一个1前面需要多使用一次左键。 |
更新:完全不行,直接变成 block 不是行级元素了 |
这样的话鼠标在代码块内上下会有问题。 |
似乎无解了? |
好像可以用 zwnbsp + |
感觉应该解决不了了,我试了 Notion FlowUs Wolai 飞书 语雀,都没解决这个问题 |
需要使用在父元素上 |
想了想感觉还是 前面说的这个方案 更有可能解决问题,难点在于光标处于
|
不能随意添加和改动 dom 结构,目前有大量代码在维护这些结构。zwnbsp + word-break: keep-all; 有什么问题么? |
我这里不行:#11248 (comment) |
参看这个回复 |
是不是操作系统的问题,我这正常的 Jietu20241114-113057-HD.mp4 |
你再录屏看看,使用这个样式之后缓慢调整侧栏宽度的时候是怎样的? |
这样好像可以:
|
那就先确定这个方案,涉及的改动点比较多,后面有空统一修改。 |
你那边确认这个可以吗:
|
span[data-type="code"] 不添加 word-break: break-all; 不去除 white-space: pre-wrap; |
行级标签也有类似的问题 https://ld246.com/article/1736315014904 |
https://ld246.com/article/1714223772557/comment/1714313897365?r=Vanessa#comments
The text was updated successfully, but these errors were encountered: