siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
19.96k stars 1.47k forks source link

链接被识别为标签 #10032

Closed kylehz closed 9 months ago

kylehz commented 9 months ago

Is there an existing issue for this?

Can the issue be reproduced with the default theme (daylight/midnight)?

Could the issue be due to extensions?

Describe the problem

文本内容:

tekton cicd实战 https://mp.weixin.qq.com/s?__biz=MjM5OTg2MTM0MQ==&mid=2247483705&idx=1&sn=f121deb3b87b48f6cbfb6f0c1395c0bb&chksm=a7344c0b9043c51dba72dbea32dbd1caeae376051bb2f0d6f51b32d6c693e71c939f41e916a2&scene=21#wechat_redirect
pipeline各参数说明 https://github.com/tektoncd/pipeline/blob/main/docs/workspaces.md#workspaces-in-tasks-and-taskruns

复制到资源笔记后被识别为标签:

image

Expected result

希望不被识别为标签 是不是复制的时候自动换行就可以了?

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.11.1
- Operating System:  MacOS
- Browser (if used):

Log file

test.sy.zip

More information

No response

88250 commented 9 months ago

标签的语法是 #foo#,所以上面的文本内容中的部分会被解析为标签。

可以粘贴的时候使用 Ctrl+K 作为超链接粘贴,这样就不会被解析为标签了。

kylehz commented 9 months ago

如果用Ctrl+K 复制的话,会变成一个链接,但我这个是两行内容 我的意思是能不能复制的时候加个换行 这样就不会被识别为标签了

88250 commented 9 months ago

恐怕没法判断加不加,有的时候是需要识别为标签的。

---原始邮件--- 发件人: @.> 发送时间: 2023年12月30日(周六) 下午5:39 收件人: @.>; 抄送: @.>;"State @.>; 主题: Re: [siyuan-note/siyuan] 链接被识别为标签 (Issue #10032)

如果用Ctrl+K 复制的话,会变成一个链接,但我这个是两行内容 我的意思是能不能复制的时候加个换行 这样就不会被识别为标签了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

kylehz commented 9 months ago

标签不需要换行吧

88250 commented 9 months ago

标签内容是不需要换行的。我想表达的是如果用换行作为区分是否解析为标签也不能解决此类问题,毕竟有不带换行且匹配标签语法的情况。

kylehz commented 9 months ago

那这个两行的内容复制过去是不是应该识别成两个块,而不是一个块

88250 commented 9 months ago

中间没有空行分隔的话是一个段落块。