# PrettyText.markdown 调用有什么问题？

**URL:** <https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674>\
**Category:** Development\
**Created:** [2018 年4 月 5 日 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:** 1

<div class="post-metadata">

作者： ![ballistic](https://avatars.discourse-cdn.com/v4/letter/b/dfb087/32.png) [@ballistic](https://meta.discourse.org/u/ballistic)\
发布日期： [2018 年4 月 5 日 21:11 UTC](https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674/1 "2018-04-05T21:11:49Z")

</div>

```
PrettyText.markdown("❤️❤️❤️", {}) 

```

Will not generate the same code as:

```
PrettyText.markdown(":heart::heart::heart:", {})

```

It generates:

```
=> "<p><img src=\"/images/emoji/apple/heart.png?v=5\" title=\":heart:\" class=\"emoji\" alt=\":heart:\">️:heart:️:heart:️</p>" 
( there are ':️' & ':', copy paste to https://www.soscisurvey.de/tools/view-chars.php to see it)

```

I think it has something to do with

```
replacement = "\u200b" + replacement;

```

In lib/pretty\_text/shims.js

( on 1.9.4 )

---

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