🎨 Heading convert to doc does not use naming as doc name https://github.com/siyuan-note/siyuan/issues/8959
This commit is contained in:
parent
0635af2fc5
commit
b64ef60261
2 changed files with 4 additions and 1 deletions
|
@ -134,7 +134,10 @@ func getNodeRefText(node *ast.Node) string {
|
|||
ret = util.EscapeHTML(ret)
|
||||
return ret
|
||||
}
|
||||
return getNodeRefText0(node)
|
||||
}
|
||||
|
||||
func getNodeRefText0(node *ast.Node) string {
|
||||
switch node.Type {
|
||||
case ast.NodeBlockQueryEmbed:
|
||||
return "Query Embed Block..."
|
||||
|
|
|
@ -272,7 +272,7 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath string) (srcRootBlockID,
|
|||
}
|
||||
|
||||
box := Conf.Box(targetBoxID)
|
||||
headingText := getNodeRefText(headingNode)
|
||||
headingText := getNodeRefText0(headingNode)
|
||||
headingText = util.FilterFileName(headingText)
|
||||
|
||||
moveToRoot := "/" == targetPath
|
||||
|
|
Loading…
Add table
Reference in a new issue