mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Use ID when block ref anchor text is empty https://github.com/siyuan-note/siyuan/issues/13606
This commit is contained in:
parent
97b0faa0b9
commit
7632fc0a27
1 changed files with 5 additions and 0 deletions
|
|
@ -451,6 +451,11 @@ func SetDynamicBlockRefText(blockRef *ast.Node, refText string) {
|
|||
return
|
||||
}
|
||||
|
||||
refText = strings.TrimSpace(refText)
|
||||
if "" == refText {
|
||||
refText = blockRef.TextMarkBlockRefID
|
||||
}
|
||||
|
||||
blockRef.TextMarkBlockRefSubtype = "d"
|
||||
blockRef.TextMarkTextContent = refText
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue