Skip to content

Supports replacing text elements with other elements #11058

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

Closed
3 tasks done
tagaga opened this issue Apr 16, 2024 · 4 comments
Closed
3 tasks done

Supports replacing text elements with other elements #11058

tagaga opened this issue Apr 16, 2024 · 4 comments
Assignees
Milestone

Comments

@tagaga
Copy link

tagaga commented Apr 16, 2024

搜索替换的bug???

Is there an existing issue for this?

  • I have searched the existing issues

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

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

将“何”字换成标签何小二,替换为“#何小二#”,替换后变成了“###何小二#小二#小二#”,是替换参数设定错了 的原因,还是bug?

Expected result

将“何”字换成标签何小二,替换为“#何小二#”,替换后变成了“###何小二#小二#小二#”,是替换参数设定错了 的原因,还是bug?

Screenshot or screen recording presentation

替换为“#何小二#”

Version environment

- Version: 3.0.10
- Operating System: win11
- Browser (if used):

Log file

I 2024/04/16 17:58:49 repository.go:1274: syncing data repo [device=138f83fd-1d5e-431f-9001-442a78bac5c4, kernel=epsol08, provider=3, mode=a/false]
I 2024/04/16 17:58:49 ref.go:50: got local latest [device=138f83fd-1d5e-431f-9001-442a78bac5c4/windows, id=ebf4f78459ee94f42f976991a453333a7ec9d5c0, files=534, size=35 MB, created=2024-04-16 17:42:39]
I 2024/04/16 17:58:49 repo.go:595: walk data [files=534] cost [46.5251ms]
I 2024/04/16 17:58:49 ref.go:50: got local latest [device=138f83fd-1d5e-431f-9001-442a78bac5c4/windows, id=ebf4f78459ee94f42f976991a453333a7ec9d5c0, files=534, size=35 MB, created=2024-04-16 17:42:39]
I 2024/04/16 17:58:49 webdav.go:92: uploaded object [main/siyuan/repo/lock-sync]
I 2024/04/16 17:58:49 ref.go:50: got local latest [device=138f83fd-1d5e-431f-9001-442a78bac5c4/windows, id=ebf4f78459ee94f42f976991a453333a7ec9d5c0, files=534, size=35 MB, created=2024-04-16 17:42:39]
I 2024/04/16 17:58:50 webdav.go:104: downloaded object [main/siyuan/repo/refs/latest]
I 2024/04/16 17:58:50 webdav.go:104: downloaded object [main/siyuan/repo/indexes/ebf4f78459ee94f42f976991a453333a7ec9d5c0]
I 2024/04/16 17:58:50 sync.go:1581: got cloud latest [device=138f83fd-1d5e-431f-9001-442a78bac5c4/windows, id=ebf4f78459ee94f42f976991a453333a7ec9d5c0, files=534, size=35 MB, created=2024-04-16 17:42:39]
I 2024/04/16 17:58:50 webdav.go:116: removed object [main/siyuan/repo/lock-sync]
I 2024/04/16 17:58:50 repository.go:1342: synced data repo [device=138f83fd-1d5e-431f-9001-442a78bac5c4, kernel=epsol08, provider=3, mode=a/false, ufc=0, dfc=1, ucc=0, dcc=0, ub=0 B, db=23 kB] in [0.82s], merge result [conflicts=0, upserts=0, removes=0]

More information

No response

@88250
Copy link
Member

88250 commented Apr 17, 2024

目前仅支持替换元素的内容,不支持修改元素的类型。

@88250 88250 changed the title 搜索替换的bug??? 搜索替换支持变更行级元素类型 Apr 17, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Apr 19, 2024

支持将文本替换为标签

这种情况下替换,支持转换为标签:

image

变成这样:(标签样式是主题的效果)

image

而不是这样:

image

@88250 88250 changed the title 搜索替换支持变更行级元素类型 Supports replacing text elements with tag elements Apr 20, 2024
@88250 88250 self-assigned this Apr 20, 2024
@88250 88250 changed the title Supports replacing text elements with tag elements Supports replacing text elements with other elements Apr 20, 2024
@88250 88250 added this to the 3.0.11 milestone Apr 20, 2024
@88250 88250 closed this as completed Apr 20, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Apr 20, 2024

@88250 修改之后支持将文本替换为什么类型?标签、块引之类的都行吗?

@88250
Copy link
Member

88250 commented Apr 20, 2024

应该都行,我只简单测了下标签和加粗。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants