mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Document block sort value changed from 0 to 100 https://github.com/siyuan-note/siyuan/issues/12886
This commit is contained in:
parent
69a1022f8d
commit
ad91c2dfc3
1 changed files with 2 additions and 2 deletions
|
|
@ -1422,8 +1422,6 @@ func execStmtTx(tx *sql.Tx, stmt string, args ...interface{}) (err error) {
|
||||||
func nSort(n *ast.Node) int {
|
func nSort(n *ast.Node) int {
|
||||||
switch n.Type {
|
switch n.Type {
|
||||||
// 以下为块级元素
|
// 以下为块级元素
|
||||||
case ast.NodeDocument:
|
|
||||||
return 0
|
|
||||||
case ast.NodeHeading:
|
case ast.NodeHeading:
|
||||||
return 5
|
return 5
|
||||||
case ast.NodeParagraph:
|
case ast.NodeParagraph:
|
||||||
|
|
@ -1446,6 +1444,8 @@ func nSort(n *ast.Node) int {
|
||||||
return 30
|
return 30
|
||||||
case ast.NodeAttributeView:
|
case ast.NodeAttributeView:
|
||||||
return 30
|
return 30
|
||||||
|
case ast.NodeDocument:
|
||||||
|
return 100
|
||||||
case ast.NodeText, ast.NodeTextMark:
|
case ast.NodeText, ast.NodeTextMark:
|
||||||
if n.IsTextMarkType("tag") {
|
if n.IsTextMarkType("tag") {
|
||||||
return 205
|
return 205
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue