# Why did the underscore not show up in the markdown?

**URL:** <https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564>\
**Category:** Help\
**Created:** [September 11, 2021, 3:17am UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564 "2021-09-11T03:17:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [September 11, 2021, 3:17am UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564/1 "2021-09-11T03:17:48Z")

</div>

I used the same template literal code but got two different outputs.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/e/ef9993a17232581b22bea46c6630b20d840fe339.png)

Did I do something wrong?

---

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [September 11, 2021, 3:53am UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564/2 "2021-09-11T03:53:52Z")

</div>

I’m not able to reproduce this problem. Can you publish your notebook so we can see?

> **[Underscore in Markdown Test](https://observablehq.com/d/0c5270430ac73f58)**
>
> Ref. https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564 This is some prose. This is some more prose.

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [September 11, 2021, 4:38am UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564/3 "2021-09-11T04:38:13Z")

</div>

Published [Wave Surfer Regions / Brett Cooper / Observable](https://observablehq.com/@hellonearthis/wave-surfer-regions)  
But now it works. 😕

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/f/fa9df7df3386b4679e064f5df88de5b7812d8a39.png)

I just recall that I was messing with the CSS for PRE and CODE, so think it was that that messed up the output.

Note the g was also affected.

 ![Screenshot_22](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/6/6fda474e2f841917010ee55bd026629e89d13015.png)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [September 11, 2021, 12:08pm UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564/4 "2021-09-11T12:08:00Z")

</div>

You’re applying a `background-color` to an inline element, which causes succeeding lines to partially cover preceding lines. You can add `box-shadow: inset 0 0 10px;` to make the overlaps visible:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/0/0522b6961dac436f18c89c0d126fa89e20adceb3.png)

Add the following to avoid overlaps:

```css
code {
 line-height: calc(1.2em + 12px);
}

```

As a general rule, don’t try to format `<pre>` and `<code>` with the same declaration. Be aware of the different uses and default styles of both elements. Use selector specificity to set styles that should apply to `<code>` when used inline (e.g. in paragraphs or list items), and use a more specific selector `pre > code` to reset or override these styles when `<code>` is used inside a `<pre><code>` code block combo.

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [September 12, 2021, 5:52am UTC](https://talk.observablehq.com/t/why-did-the-underscore-not-show-up-in-the-markdown/5564/5 "2021-09-12T05:52:52Z")

</div>

Thanks @mootari for fixing my goof. I’m not good at CSS and your tips are really appreciated. I am lazy so I tend to not fine grain the CSS if it mostly works because…  
 ![CSS_meme](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/d/d7a2e50ff198dfece4688ef1362008c81923a504.gif)
