This commit is contained in:
Daniel 2024-11-16 00:17:18 +08:00
parent c086ec4eef
commit ea0146ceb9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 21 additions and 8 deletions

View file

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