# Quel est le problème avec l'appel PrettyText.markdown ?

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

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [Avril 6, 2018, 6:00 UTC](https://meta.discourse.org/t/what-is-the-problem-with-prettytext-markdown-call/84674/7 "2018-04-06T06:00:50Z")

</div>

> [@riking](#):
>
> it’s not the BOM

That was my initial hunch, a big endian - little endian paste thing. (been there, done that)

If the leading colon isn’t the “beginning of a ‘word’” Discourse adds a “hair space” - the `\u200b`.

> <https://github.com/discourse/discourse/blob/main/lib/pretty_text/shims.js#L12-L25>

Looking at bytes, if it is endian related, I don’t see how.

```plaintext
\u200b
01011100 01110101 00110010 00110000 00110000 01100010

\uffef
01011100 01110101 01100110 01100110 01100101 01100110

\uffb8
01011100 01110101 01100110 01100110 01100010 00111000

\uffe2
01011100 01110101 01100110 01100110 01100101 00110010

```

So I think it must be the regex’s interpretation of what it considers to be a “word”, i.e. locale related.

---

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