# リッチテキストエディタでURLを貼り付けると、チルダ文字が不適切にエスケープされる

**URL:** https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739
**Category:** Bug
**Tags:** composer
**Created:** [2025 年 8 月 7 日午後 2:53 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739 "2025-08-07T14:53:06Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [2025 年 8 月 8 日午後 12:23 UTC](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739/4 "2025-08-08T12:23:53Z")

</div>

修正がマージされました。

> <https://github.com/discourse/discourse/pull/34164>
>
> When the content of the link URL is in the document itself, like in \`\<https://ww…w.example.com\>\` or \`www.example.com\`, we need to flag it to the serializer so it doesn't try to escape it.
> 
> ProseMirror's markdown serializer uses \`state.inAutoLink\` as a signal to avoid this escaping.

ご報告いただきありがとうございます。

---

_[View the full topic](https://meta.discourse.org/t/pasted-urls-in-rich-text-editor-improperly-escape-tilde-character/377739)._
