mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 Database gallery view https://github.com/siyuan-note/siyuan/issues/10414
This commit is contained in:
parent
0440d94f71
commit
d9e5f2c312
1 changed files with 1 additions and 0 deletions
|
|
@ -416,6 +416,7 @@ func fillGalleryCardCover(attrView *av.AttributeView, view *av.View, cardValues
|
||||||
func renderBlockDOMByNode(node *ast.Node, luteEngine *lute.Lute) string {
|
func renderBlockDOMByNode(node *ast.Node, luteEngine *lute.Lute) string {
|
||||||
tree := &parse.Tree{Root: &ast.Node{Type: ast.NodeDocument}, Context: &parse.Context{ParseOption: luteEngine.ParseOptions}}
|
tree := &parse.Tree{Root: &ast.Node{Type: ast.NodeDocument}, Context: &parse.Context{ParseOption: luteEngine.ParseOptions}}
|
||||||
blockRenderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)
|
blockRenderer := render.NewProtyleRenderer(tree, luteEngine.RenderOptions)
|
||||||
|
blockRenderer.Options.ProtyleContenteditable = false
|
||||||
ast.Walk(node, func(node *ast.Node, entering bool) ast.WalkStatus {
|
ast.Walk(node, func(node *ast.Node, entering bool) ast.WalkStatus {
|
||||||
rendererFunc := blockRenderer.RendererFuncs[node.Type]
|
rendererFunc := blockRenderer.RendererFuncs[node.Type]
|
||||||
return rendererFunc(node, entering)
|
return rendererFunc(node, entering)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue