# ¿Cuál es el problema con la llamada a PrettyText.markdown?

**URL:** <https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674>\
**Category:** Development\
**Created:** [5 Abril, 2018 21:11 UTC](https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674 "2018-04-05T21:11:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [5 Abril, 2018 21:25 UTC](https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674/2 "2018-04-05T21:25:08Z")

</div>

The control code insertion isn’t happening on latest:

```plaintext
[1] pry(main)> puts PrettyText.markdown("❤️", {});
<p><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:">️</p>
[2] pry(main)> puts PrettyText.markdown(":heart:", {});
<p><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:"></p>

```

although I do note it behaves differently:

```plaintext
[1] pry(main)> puts PrettyText.markdown("❤️❤️❤️", {});
<p><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:">️:heart:️:heart:️</p>
[2] pry(main)> puts PrettyText.markdown(":heart::heart::heart:", {});
<p><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:"><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:"><img src="/images/emoji/twitter/heart.png?v=5" title=":heart:" class="emoji" alt=":heart:"></p>

```

```plaintext
❤️❤️❤️

:heart::heart::heart:

```

generates:

❤❤❤

❤❤❤

---

_[View the full topic](https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674)._
