mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-08 17:58:50 +01:00
🎨 Improve callout block https://github.com/siyuan-note/siyuan/issues/16607
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
6f2ace0c28
commit
c07efea8de
18 changed files with 33 additions and 33 deletions
|
|
@ -703,7 +703,7 @@ func updateBlock(c *gin.Context) {
|
|||
}
|
||||
tree.Root.FirstChild.SetIALAttr("id", id)
|
||||
|
||||
data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions)
|
||||
data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)
|
||||
transactions = []*model.Transaction{
|
||||
{
|
||||
DoOperations: []*model.Operation{
|
||||
|
|
@ -888,7 +888,7 @@ func batchUpdateBlock(c *gin.Context) {
|
|||
}
|
||||
tree.Root.FirstChild.SetIALAttr("id", id)
|
||||
|
||||
data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions)
|
||||
data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)
|
||||
ops = append(ops, &model.Operation{
|
||||
Action: "update",
|
||||
ID: id,
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ func html2BlockDOM(c *gin.Context) {
|
|||
parse.TextMarks2Inlines(tree) // 先将 TextMark 转换为 Inlines https://github.com/siyuan-note/siyuan/issues/13056
|
||||
parse.NestedInlines2FlattedSpansHybrid(tree, false)
|
||||
|
||||
renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)
|
||||
renderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)
|
||||
output := renderer.Render()
|
||||
ret.Data = gulu.Str.FromBytes(output)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue