We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
word-break: break-all;
相关帖子:https://ld246.com/article/1727688144141
先使用这个代码片段:
.protyle-wysiwyg .hljs > div[contenteditable] { word-break: break-all !important; }
然后把下面这段代码复制粘贴到代码块里,开启代码块换行和行号:
if ($_SESSION['is_snapshotuser'] == 1) { $_SESSION['is_snapshotuser'] = 0; return ['nickname' => '微信用户', 'avatar' => 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q3auHgzwzM5EPsm1NEriaoj9ONhxhcWKz9RbNRnYhaooks1zicFGllRezc7Ya7v5WNqAMtfIxTpF7FVdNpXZnuNA/132']; }
行号高度的计算就会有问题:
不知道能不能实现,但我想到一个思路:
.wordBreak === "break-all"
相关的需要修改的应该是这段代码:
siyuan/app/src/protyle/render/highlightRender.ts
Lines 117 to 165 in 6278d97
The text was updated successfully, but these errors were encountered:
https://ld246.com/article/1727688144141/comment/1732412801927?r=Vanessa#comments
Sorry, something went wrong.
我说的是回帖里发现的这个问题呐:
这个问题参见回帖。
Vanessa219
No branches or pull requests
背景
相关帖子:https://ld246.com/article/1727688144141
先使用这个代码片段:
然后把下面这段代码复制粘贴到代码块里,开启代码块换行和行号:
行号高度的计算就会有问题:
方案
不知道能不能实现,但我想到一个思路:
.wordBreak === "break-all"
,则按 break-all 来计算代码块的行号相关的需要修改的应该是这段代码:
siyuan/app/src/protyle/render/highlightRender.ts
Lines 117 to 165 in 6278d97
The text was updated successfully, but these errors were encountered: