🎨 Database primary key anchor text supports line breaks https://github.com/siyuan-note/siyuan/issues/13624

This commit is contained in:
Daniel 2025-01-02 11:10:16 +08:00
parent 6125603e38
commit 07cd4ec0b5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 23 additions and 13 deletions

View file

@ -296,7 +296,7 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (sr
}
box := Conf.Box(targetBoxID)
headingText := getNodeRefText0(headingNode, Conf.Editor.BlockRefDynamicAnchorTextMaxLen)
headingText := getNodeRefText0(headingNode, Conf.Editor.BlockRefDynamicAnchorTextMaxLen, true)
if strings.Contains(headingText, "/") {
headingText = strings.ReplaceAll(headingText, "/", "_")
util.PushMsg(Conf.language(246), 7000)