Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
c79e32cc91
5 changed files with 25 additions and 7 deletions
|
@ -312,7 +312,7 @@ export const bindCardEvent = async (options: {
|
|||
fetchPost("/api/riff/batchSetRiffCardsDueTime", {
|
||||
cardDues: [{
|
||||
id: currentCard.cardID,
|
||||
due: dayjs().day(parseInt(inputElement.value)).format("YYYYMMDDHHmmss")
|
||||
due: dayjs().add(parseInt(inputElement.value), 'day').format("YYYYMMDDHHmmss")
|
||||
}]
|
||||
}, () => {
|
||||
actionElements[0].classList.add("fn__none");
|
||||
|
|
2
app/stage/protyle/js/lute/lute.min.js
vendored
2
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -10,7 +10,7 @@ require (
|
|||
github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
|
||||
github.com/88250/go-humanize v0.0.0-20240424102817-4f78fac47ea7
|
||||
github.com/88250/gulu v1.2.3-0.20240612035750-c9cf5f7a4d02
|
||||
github.com/88250/lute v1.7.7-0.20241008022254-82d460d4f0e9
|
||||
github.com/88250/lute v1.7.7-0.20241010064027-023a9139f2b3
|
||||
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
|
||||
|
|
|
@ -14,8 +14,8 @@ 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.20240612035750-c9cf5f7a4d02 h1:3e5+yobj655pTeKOYMbJrnc1mE51ZkbXIxquTYZuYCY=
|
||||
github.com/88250/gulu v1.2.3-0.20240612035750-c9cf5f7a4d02/go.mod h1:MUfzyfmbPrRDZLqxc7aPrVYveatTHRfoUa5TynPS0i8=
|
||||
github.com/88250/lute v1.7.7-0.20241008022254-82d460d4f0e9 h1:Nsd/dd+jKwjeAxwBTtQs5Bh++oWhgSfZL2zE2L5VlwY=
|
||||
github.com/88250/lute v1.7.7-0.20241008022254-82d460d4f0e9/go.mod h1:VDAzL8b+oCh+e3NAlmwwLzC53ten0rZlS8NboB7ljtk=
|
||||
github.com/88250/lute v1.7.7-0.20241010064027-023a9139f2b3 h1:6A+wPwh4E8rrkIz/3UfPEAQ0kbVMnvln5MahjZNzHG8=
|
||||
github.com/88250/lute v1.7.7-0.20241010064027-023a9139f2b3/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=
|
||||
|
|
|
@ -217,6 +217,26 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
|||
subTree, _ := LoadTreeByBlockID(sqlBlock.ID)
|
||||
var md string
|
||||
if "d" == sqlBlock.Type {
|
||||
if 0 == blockEmbedMode {
|
||||
// 嵌入块中出现了大于等于上方非嵌入块的标题时需要降低嵌入块中的标题级别
|
||||
// Improve export of heading levels in embedded blocks https://github.com/siyuan-note/siyuan/issues/12233 https://github.com/siyuan-note/siyuan/issues/12741
|
||||
embedTopLevel := 0
|
||||
ast.Walk(subTree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering || ast.NodeHeading != n.Type {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
embedTopLevel = n.HeadingLevel
|
||||
if parentHeadingLevel >= embedTopLevel {
|
||||
n.HeadingLevel += parentHeadingLevel - embedTopLevel + 1
|
||||
if 6 < n.HeadingLevel {
|
||||
n.HeadingLevel = 6
|
||||
}
|
||||
}
|
||||
return ast.WalkContinue
|
||||
})
|
||||
}
|
||||
|
||||
md, _ = lute.FormatNodeSync(subTree.Root, luteEngine.ParseOptions, luteEngine.RenderOptions)
|
||||
} else if "h" == sqlBlock.Type {
|
||||
h := treenode.GetNodeInTree(subTree, sqlBlock.ID)
|
||||
|
@ -225,8 +245,6 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
|||
hChildren = append(hChildren, treenode.HeadingChildren(h)...)
|
||||
|
||||
if 0 == blockEmbedMode {
|
||||
// 嵌入块中出现了大于等于上方非嵌入块的标题时需要降低嵌入块中的标题级别
|
||||
// Improve export of heading levels in embedded blocks https://github.com/siyuan-note/siyuan/issues/12233
|
||||
embedTopLevel := 0
|
||||
for _, hChild := range hChildren {
|
||||
if ast.NodeHeading == hChild.Type {
|
||||
|
|
Loading…
Add table
Reference in a new issue