# Los emojis no se muestran en líneas con HTML

**URL:** https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253
**Category:** Support
**Created:** [16 Abril, 2019 18:25 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253 "2019-04-16T18:25:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [16 Abril, 2019 18:25 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/1 "2019-04-16T18:25:07Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/c/e/cef1493c9f171b99b63ea3478d1d18d762067362.png)

It’s weird, but I’ve tried refreshing the page and creating new drafts.  
Another odd thing I spotted was that when I would hit enter to create new lines in a post, it wouldn’t work, any text after the empty lines would show up on the same line as the text before them. The editor wasn’t like this several days ago, these issues didn’t occur.

---

<div class="post-metadata">

### Author: ![cjk77](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cjk77/32/151779_2.png) [@cjk77](https://meta.discourse.org/u/cjk77)
#### Post date: [16 Abril, 2019 19:07 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/2 "2019-04-16T19:07:44Z")

</div>

Have you tried different browsers? In which one(s) is this occurring?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [17 Abril, 2019 00:38 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/3 "2019-04-17T00:38:11Z")

</div>

One thing I have noticed is that on lines that start with html, emojis and other markdown doesn’t work. If you look at the raw markdown for those posts you are having trouble with, do you see html?

E.g.

```
<p>This is an HTML paragraph with :eagle: emoji. 

```

Displays as:

This is an HTML paragraph with :eagle: emoji.

Whereas

```
This is not HTML with :eagle: emoji  

```

displays as:

This is not HTML with :eagle: emoji

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [17 Abril, 2019 02:01 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/4 "2019-04-17T02:01:15Z")

</div>

Yeah this a a commonmark quirk and is working per spec:

```plaintext
<div>this is a *test* 
</div>

```

this is a \*test\*

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [17 Abril, 2019 02:51 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/5 "2019-04-17T02:51:40Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/5/9/59b39c5ff45ff720a35c8abc9126d473dbe5379a.png)

I see..even if the emoji is outside of the html tag?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [17 Abril, 2019 03:02 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/6 "2019-04-17T03:02:38Z")

</div>

Oh something is not feeling right to me cause:

> **[markdown-it demo](https://markdown-it.github.io/)**

Is providing different results for:

```plaintext
<h1>test</h1> *test*

<h1>test</h1> :) 

```

(We eat `*test*` and `:)`)

This is worth investigating, maybe it is fixed in a recent release or something.

@nbianca can you check if markdown.it needs updating? Why is the text after the close tag being eaten?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [17 Abril, 2019 09:25 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/10 "2019-04-17T09:25:30Z")

</div>

@nbianca identified that this was caused by an experimental theme component we had running on Meta, and only affected the composer preview.

I disabled it, and it works now:

```plaintext
<h1>test</h1> *test*

<h1>test</h1> :) 

```

# test
 \*test\*
# test
 :)
* * *

As for the original query, `<h3>hi</h3> :smile:` is rendering in line with the [commonmark spec](https://markdown-it.github.io/)

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

---

<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: [17 Abril, 2019 14:22 UTC](https://meta.discourse.org/t/emoji-not-displaying-on-lines-with-html/115253/11 "2019-04-17T14:22:47Z")

</div>


