Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-09-11 23:18:34 +08:00
commit 6c3777f9b8
4 changed files with 21 additions and 0 deletions

View file

@ -32,6 +32,7 @@ Below are the detailed changes in this version.
* [Inaccurate positioning when jumping from reference to block in new window](https://github.com/siyuan-note/siyuan/issues/9149)
* [The new window userAgent is missing](https://github.com/siyuan-note/siyuan/issues/9153)
* [When custom Emoji exists in the selected content, setting inline-level marks will delete the content](https://github.com/siyuan-note/siyuan/issues/9156)
* [The super block below the folded heading contains headings of the same level and cannot be loaded](https://github.com/siyuan-note/siyuan/issues/9162)
### Development

View file

@ -32,6 +32,7 @@
* [從塊引用跳轉新窗口的塊時定位不正確](https://github.com/siyuan-note/siyuan/issues/9149)
* [新窗口丟失 user-agent 請求標頭](https://github.com/siyuan-note/siyuan/issues/9153)
* [劃選內容包含自定義表情時設置行級標記會刪除內容](https://github.com/siyuan-note/siyuan/issues/9156)
* [折疊標題下方超級塊包含同級標題無法加載](https://github.com/siyuan-note/siyuan/issues/9162)
### 開發者

View file

@ -32,6 +32,7 @@
* [从块引用跳转新窗口的块时定位不正确](https://github.com/siyuan-note/siyuan/issues/9149)
* [新窗口丢失 user-agent 请求标头](https://github.com/siyuan-note/siyuan/issues/9153)
* [划选内容包含自定义表情时设置行级标记会删除内容](https://github.com/siyuan-note/siyuan/issues/9156)
* [折叠标题下方超级块包含同级标题无法加载](https://github.com/siyuan-note/siyuan/issues/9162)
### 开发者

View file

@ -58,6 +58,24 @@ func MoveFoldHeading(updateNode, oldNode *ast.Node) {
}
func IsInFoldedHeading(node, currentHeading *ast.Node) bool {
if nil == node {
return false
}
if ast.NodeSuperBlock == node.Type {
// The super block below the folded heading contains headings of the same level and cannot be loaded https://github.com/siyuan-note/siyuan/issues/9162
if nil == currentHeading {
return false
}
sbChildHeading := SuperBlockHeading(node)
if nil != sbChildHeading {
if sbChildHeading.HeadingLevel <= currentHeading.HeadingLevel {
return false
}
}
}
heading := HeadingParent(node)
if nil == heading {
return false