# Get the "raw" of the user selection (no Markdown)

**URL:** https://meta.discourse.org/t/get-the-raw-of-the-user-selection-no-markdown/381715
**Category:** Development
**Created:** [September 5, 2025, 1:37pm UTC](https://meta.discourse.org/t/get-the-raw-of-the-user-selection-no-markdown/381715 "2025-09-05T13:37:31Z")
**Posts on this page:** 1
**Showing post:** 2

<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 6, 2025, 6:25am UTC](https://meta.discourse.org/t/get-the-raw-of-the-user-selection-no-markdown/381715/2 "2025-09-06T06:25:04Z")

</div>

A workaround that I can think of is to convert the raw post to Markdown (how, I’m not sure), look at the start and end index of the selection in the converted text, than use that to extract the section from the original text. The issue would be that I’d need to assume no characters change, i.e. Markdown replaces characters 1:1. Surely there’s a better way 🤔?

---

_[View the full topic](https://meta.discourse.org/t/get-the-raw-of-the-user-selection-no-markdown/381715)._
