obsidian-tasks-group / obsidian-tasks

Task management for the Obsidian knowledge base.
https://publish.obsidian.md/tasks/
MIT License
2.39k stars 225 forks source link

Abnormal image display during task summary [in Live Preview, when the Task contains an inlined image at the start of the description] #2409

Open Fendi168 opened 10 months ago

Fendi168 commented 10 months ago

Please check that this issue hasn't been reported before.

Expected Behavior

I expect the image can be displayed in the line normally, just like the reading mode of Obsedian.See P3. 企业微信截图_16998566228305

Current behaviour

The image can be briefly displayed,then it will return to a string and become multiple lines.Like P4.

Steps to reproduce

Write the following content in the record file "Pasted image 20230914094549.png"You can use any local image instead

[[test]]

Write the following content in the summary file

```tasks
((heading includes [[test) AND (exclude sub-items)) OR (tags regex matches /^#test$/)
hide task count
hide backlink
sort by path reverse 
group by filename reverse


### Which Operating Systems are you using?

- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows

### Obsidian Version

1.4.16

### Tasks Plugin Version

5.0

### Checks

- [X] I have tried it with all other plugins disabled and the error still occurs

### Possible solution

_No response_
claremacrae commented 10 months ago

Works for me

Thanks for using Tasks.

I have followed your steps and It works for me, in the same versions of Obsidian and Tasks.

image

Providing a vault to reproduce the problem

So, if you would like it be investigated further, please create a minimal Obsidian vault, with just the file and image to reproduce the problem.

You can find instructions to do that here in this section and the following section:

https://publish.obsidian.md/tasks/Support+and+Help/Report+a+Bug#Before+reporting+a+Tasks+bug+involving+another+plugin

Thank you.

Fendi168 commented 10 months ago

I established a new minimum vault for testing and only enabled the Tasks plugin,You can see that at the beginning, the display on the right side was normal. When the task on the left is modified, the summary area on the right will be refreshed, and the display will show an issue. 录制_2023_11_15_16_54_02_55

对我有用

感谢使用任务。

我遵循了你的步骤,它对我很有效,在相同的版本黑石和任务。

形象

提供一个地下室来再现问题

所以,如果你想进一步调查它,请创建一个最小的黑石拱顶,只有文件和图像来再现问题。

您可以在本节和以下一节中找到这样做的说明:

httPS://发布.md/任务/支持+和+帮助/报告++报告前+错误#+报告前+A+任务+涉及+其他+插件的错误+

多谢。

claremacrae commented 10 months ago

I established a new minimum vault for testing and only enabled the Tasks plugin

Please create a .zip file containing your minimum vault and attach it here. Thank you in advance.

Fendi168 commented 10 months ago

Thank you for giving me a reply amidst your busy schedule. This is the attachment for the minimum vault. test.zip

我建立了一个新的最小测试库,只启用了任务插件

请创建一个。包含您的最小保险库并附加在这里的拉链文件。先谢谢你。

claremacrae commented 10 months ago

Thank you.

As a workaround, it seems that it may be an issue with Live Preview, and switching to Reading mode displays the task correctly.