-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Improve block ref anchor text rendering in templates #14457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
88250
added a commit
that referenced
this issue
Mar 30, 2025
@88250 能不能把 |
没有锚文本的情况都是处理为动态锚文本
…---Original---
From: "Jeffrey ***@***.***>
Date: Mon, Mar 31, 2025 17:48 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] Improve block ref anchor text rendering intemplates (Issue #14457)
@88250 能不能把 ((.action{$v.ID} "")) 解析为静态锚文本的块引用?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
TCOTC left a comment (siyuan-note/siyuan#14457)
@88250 能不能把 ((.action{$v.ID} "")) 解析为静态锚文本的块引用?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
能不能当特性,处理为静态锚文本?会有什么问题吗? |
不行的,要考虑到关闭笔记本没有索引的情况,处理为静态的话后面索引存在就无法变回来了
…---Original---
From: "Jeffrey ***@***.***>
Date: Mon, Mar 31, 2025 17:55 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] Improve block ref anchor text rendering intemplates (Issue #14457)
能不能当特性,处理为静态锚文本?会有什么问题吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
TCOTC left a comment (siyuan-note/siyuan#14457)
能不能当特性,处理为静态锚文本?会有什么问题吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
需要在模板里面自己判空 |
但是复制 |
不一样的,((id)) 语法直接输入可以形成块引元素,但是 queryBlocks/getBlock 返回空的话要自己处理的,是否形成块引元素可以在模板逻辑中实现。 |
哦我搞错了,返回空的时候 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
解析模板后如果块引用锚文本为空,则获取对应锚文本
或填充块 ID使用以下模板:
锚文本为空时块引用丢失了:
理想情况下应该获取对应的块内容填入锚文本 #14284 ,但如果不打算实现的话,至少应该跟直接粘贴无锚文本的块引用的效果一致,即锚文本自动填充为块 ID
The text was updated successfully, but these errors were encountered: