# 「~~~」では貼り付け内容の自動整形を防げないが、「\`\`\`」では防げる

**URL:** https://meta.discourse.org/t/does-not-prevent-auto-manipulation-of-pasted-content-which-three-backticks-does/412293
**Category:** Bug
**Tags:** markdown, fixed
**Created:** [2026 年 9 月 12 日午後 10:39 UTC](https://meta.discourse.org/t/does-not-prevent-auto-manipulation-of-pasted-content-which-three-backticks-does/412293 "2026-09-12T22:39:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2026 年 9 月 16 日午前 2:06 UTC](https://meta.discourse.org/t/does-not-prevent-auto-manipulation-of-pasted-content-which-three-backticks-does/412293/2 "2026-09-16T02:06:15Z")

</div>

確認したところ、以下のPRで修正される予定です：

> <https://github.com/discourse/discourse/pull/43711>
>
> When someone pastes formatted text into a code block opened with three tildes (\`…~~~\`), the Markdown composer adds formatting markers such as \`\*\*\` to the pasted text. The same paste into a code block opened with three backticks stays unchanged.
> 
> This commit makes both kinds of code block preserve pasted text. Pasting formatted text outside a code block still converts it to Markdown as before.
> 
> \### Reviewer notes
> 
> \#### Before this fix
> 
> The composer incorrectly converts the HTML representation to Markdown, producing \`prefix \*\*bold\*\*\` inside the tilde-fenced code block.
> 
> !\[Before the fix, the Markdown composer contains prefix followed by bold formatting markers inside a tilde-fenced code block\](https://github.com/user-attachments/assets/be9fe779-d2f6-4e67-af66-5de0f155f6e1)
> 
> \#### After this fix
> 
> The composer uses the plain-text representation inside the code block, producing \`prefix bold\` without formatting markers.
> 
> !\[After the fix, the Markdown composer contains prefix followed by plain bold text inside a tilde-fenced code block\](https://github.com/user-attachments/assets/fcfea879-ab19-4f94-805c-32778d77cc00)

---

_[View the full topic](https://meta.discourse.org/t/does-not-prevent-auto-manipulation-of-pasted-content-which-three-backticks-does/412293)._
