Discourse Meta
从 Docusaurus 粘贴会破坏代码格式块
贡献
错误
merefield
(Robert)
2026 年9 月 21 日 14:32
2
顺便说一下,从 GitHub Markdown 直接粘贴原始内容时也会出现这种情况。
即使在 Markdown 模式下……
1 个赞
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Pasted content gains erroneous line breaks
Bug
needs-repro
5
310
2024 年8 月 19 日
Copy a `blockQuote` → paste it into `/new-topic`’s `text/plain` `textarea` → switch to the previewer → becomes `pre > code`
Bug
markdown
0
43
2026 年10 月 28 日
`white-space` CSS property of clipboard data not respected when pasting in rich text editor
Bug
composer
12
688
2026 年1 月 16 日
Disable Code Formatting for inappropriate 4 space indent?
Feature
11
1841
2026 年9 月 23 日
Users pasting unformatted code results in unwanted styles
Product Support
10
2453
2021 年6 月 28 日