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
16.84k stars 1.26k forks source link

Improve HTML code block clipping #11427

Closed jim555666888 closed 1 month ago

jim555666888 commented 1 month ago

3.0.14复制代码块的问题:丢失了代码缩进,导致代码挤在一起

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

image

ru如图所示

Expected result

希望能修正

Screenshot or screen recording presentation

No response

Version environment

- Version: 3.0.14
- Operating System: macos
- Browser (if used):

Log file

More information

No response

88250 commented 1 month ago

请发一下网址

TCOTC commented 1 month ago

我这里复制 ChatGPT 的代码的缩进没问题

jim555666888 commented 1 month ago

https://github.com/siyuan-note/siyuan/assets/105782402/38dfeb69-6a16-4974-9856-4e72b8c284c0

换不同的主题均这样,在更新3.0.14或者3.0.13时出现的问题

jim555666888 commented 1 month ago

请发一下网址

我传了视频,就是通用的chatgpt网址 以前版本粘贴是没问题的

TCOTC commented 1 month ago

这样复制确实不行

@88250 https://chat.openai.com/share/39c8792e-13e2-4106-b4c4-4d81b7cba32c

88250 commented 1 month ago

下个版本改进。