Jelajahi Sumber

:bug: Line break lost after soft break of end-of-line element https://github.com/siyuan-note/siyuan/issues/10718

Daniel 1 tahun lalu
induk
melakukan
c7beb2a1f8
4 mengubah file dengan 3 tambahan dan 9 penghapusan
  1. 0 0
      app/stage/protyle/js/lute/lute.min.js
  2. 0 5
      kernel/filesys/json_parser.go
  3. 3 2
      kernel/go.mod
  4. 0 2
      kernel/go.sum

File diff ditekan karena terlalu besar
+ 0 - 0
app/stage/protyle/js/lute/lute.min.js


+ 0 - 5
kernel/filesys/json_parser.go

@@ -233,11 +233,6 @@ func fixLegacyData(tip, node *ast.Node, idMap *map[string]bool, needFix, needMig
 			node.Tokens = []byte("Untitled")
 			*needFix = true
 		}
-		if 1 == len(node.Tokens) && bytes.Equal(node.Tokens, []byte("\n")) {
-			// https://ld246.com/article/1710381064911
-			node.Tokens = []byte("")
-			*needFix = true
-		}
 	case ast.NodeTagCloseMarker:
 		if nil != tip.LastChild {
 			if ast.NodeTagOpenMarker == tip.LastChild.Type {

+ 3 - 2
kernel/go.mod

@@ -9,7 +9,7 @@ require (
 	github.com/88250/clipboard v0.1.5
 	github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
 	github.com/88250/gulu v1.2.3-0.20240324024901-3c1bb82cba30
-	github.com/88250/lute v1.7.7-0.20240317033923-b5d564e25df7
+	github.com/88250/lute v1.7.7-0.20240324154522-5bad50e3dd45
 	github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c
 	github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1
 	github.com/ClarkThan/ahocorasick v0.0.0-20231011042242-30d1ef1347f4
@@ -172,7 +172,8 @@ replace github.com/mattn/go-sqlite3 => github.com/88250/go-sqlite3 v1.14.13-0.20
 //replace github.com/siyuan-note/riff => D:\88250\riff
 //replace github.com/siyuan-note/httpclient => D:\88250\httpclient
 //replace github.com/siyuan-note/filelock => D:\88250\filelock
-//replace github.com/88250/lute => D:\gogogo\src\github.com\88250\lute
+replace github.com/88250/lute => D:\gogogo\src\github.com\88250\lute
+
 //replace github.com/88250/pdfcpu => D:\88250\pdfcpu
 //replace github.com/88250/gulu => D:\88250\gulu
 //replace github.com/mattn/go-sqlite3 => D:\88250\go-sqlite3

+ 0 - 2
kernel/go.sum

@@ -10,8 +10,6 @@ github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950 h1:Pa5hMiBceT
 github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
 github.com/88250/gulu v1.2.3-0.20240324024901-3c1bb82cba30 h1:IeE4DVRWnVpcbMj7gGZoSMiBWs3h/ihiyOmualS1Mas=
 github.com/88250/gulu v1.2.3-0.20240324024901-3c1bb82cba30/go.mod h1:MUfzyfmbPrRDZLqxc7aPrVYveatTHRfoUa5TynPS0i8=
-github.com/88250/lute v1.7.7-0.20240317033923-b5d564e25df7 h1:egkoxNZeGBDcUCd4kUHgeYIZZ7uNHTK+TT+K2yZTHm0=
-github.com/88250/lute v1.7.7-0.20240317033923-b5d564e25df7/go.mod h1:VDAzL8b+oCh+e3NAlmwwLzC53ten0rZlS8NboB7ljtk=
 github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c h1:Dl/8S9iLyPMTElnWIBxmjaLiWrkI5P4a21ivwAn5pU0=
 github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c/go.mod h1:S5YT38L/GCjVjmB4PB84PymA1qfopjEhfhTNQilLpv4=
 github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1 h1:48T899JQDwyyRu9yXHePYlPdHtpJfrJEUGBMH3SMBWY=

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini