# Markdown escaping

**URL:** https://meta.discourse.org/t/markdown-escaping/413206
**Category:** Bug
**Tags:** composer, mobile, markdown, ios
**Created:** [September 24, 2026, 8:24am UTC](https://meta.discourse.org/t/markdown-escaping/413206 "2026-09-24T08:24:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [September 24, 2026, 8:24am UTC](https://meta.discourse.org/t/markdown-escaping/413206/1 "2026-09-24T08:24:25Z")

</div>

When i try to copy content from `/raw/` on Meta’s Safari to Safari PWA, i don’t end up with a code block like i do when using Firefox to Firefox on Linux Mint. Furthermore, markdown escapes on the iPhone when pasted into either the rich text composer or the markdown composer.

Perhaps enabling the new composer would help?

my Discourse version is 2026.10.0-latest’s [Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/770ec717704ded7a0e57989af1ede4bb41994592)

with **Enable markdown endpoints** enabled

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [September 24, 2026, 8:33am UTC](https://meta.discourse.org/t/markdown-escaping/413206/2 "2026-09-24T08:33:19Z")

</div>

> [@Ethsim2](#):
>
> Perhaps enabling the new composer would help?

the composer redesign actually does **not** suffer from that `/` escaping issue

---

<div class="post-metadata">

### Author: ![Kamal\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kamal_s/32/578813_2.png) [@Kamal\_S](https://meta.discourse.org/u/Kamal_S)
#### Post date: [September 24, 2026, 9:35am UTC](https://meta.discourse.org/t/markdown-escaping/413206/3 "2026-09-24T09:35:58Z")

</div>

> [@Ethsim2](#):
>
> When i try to copy content from `/raw/` on Meta’s Safari to Safari PWA, i don’t end up with a code block like i do when using Firefox to Firefox on Linux Mint. Furthermore, markdown escapes on the iPhone when pasted into either the rich text composer or the markdown composer.
> 
> Perhaps enabling the new composer would help?
> 
> my Discourse version is 2026.10.0-latest’s [Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/770ec717704ded7a0e57989af1ede4bb41994592)
> 
> with **Enable markdown endpoints** enabled

It sounds like there may be two separate issues here: Safari/PWA clipboard handling when copying from `/raw/`, and Markdown escaping when pasting on iPhone.

Enabling the new composer could be useful as a test, but I’d first compare the same content between Safari, Safari PWA and Firefox, and between the rich-text and Markdown composers. With `Enable markdown endpoints` enabled, it would also be worth checking whether the behaviour is specific to the clipboard conversion rather than the `/raw/` endpoint itself.

If anyone can reproduce this consistently, the browser/iOS versions and a minimal example of the copied/pasted content would help narrow down where the formatting is being altered.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [September 24, 2026, 9:44am UTC](https://meta.discourse.org/t/markdown-escaping/413206/4 "2026-09-24T09:44:57Z")

</div>

So you’re expecting:

1. The composer to automatically surround your text with triple backticks?
2. The markdown should be identical to that of what you copied, but things like asterisks for bold don’t carry over?

Sounds like 2 different things.

On Android, 1 has not happened for me as far as I can remember, on my (Android) phone or on my laptop (Chrome). Can you try a different browser? Perhaps it is Firefox-specific behaviour.

For 2, I don’t face this problem. Adding #ios and #mobile here.

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [September 24, 2026, 9:55am UTC](https://meta.discourse.org/t/markdown-escaping/413206/5 "2026-09-24T09:55:29Z")

</div>

i like Firefox because i can right-click and use **Select All**
