# Underscores in mid-text in markdown

**URL:** https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944
**Category:** Bug
**Created:** [5월 9, 2016, 3:41오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944 "2016-05-09T15:41:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [5월 9, 2016, 3:41오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944/1 "2016-05-09T15:41:13Z")

</div>

When _emphasising_ text with underscore shouldn’t it ignore any underscores that are in\_side text?

_So this whole\_line should be italicised_

but it is not…

 ![](https://global.discourse-cdn.com/meta/original/3X/f/8/f8276d0755fb5805f717d74dafe01d8652166b3c.png)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [5월 9, 2016, 3:42오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944/2 "2016-05-09T15:42:19Z")

</div>

You have to escape the underlines you want included `\_`

Or are you requesting the toolbar/keyboard shortcut to escape those automatically if the text is selected? (in which case I believe this to be a feature request)

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [5월 9, 2016, 3:50오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944/3 "2016-05-09T15:50:39Z")

</div>

Is that the official markdown way? If so maybe better leave it as it is. Thanks 🙂

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [5월 9, 2016, 3:52오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944/4 "2016-05-09T15:52:29Z")

</div>

> [@AstonJ](#):
>
> Is that the official markdown way?

Escaping characters? Yes.

> **[Markdown Tutorial - Emphasis](https://commonmark.org/help/tutorial/02-emphasis.html)**

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 9, 2016, 7:54오후 UTC](https://meta.discourse.org/t/underscores-in-mid-text-in-markdown/43944/5 "2016-05-09T19:54:14Z")

</div>


