# Odd markdown results - unexpected whitespace removal

**URL:** <https://meta.discourse.org/t/odd-markdown-results-unexpected-whitespace-removal/28989>\
**Category:** Bug\
**Tags:** markdown-it-review, markdown\
**Created:** [19.Май.2015 13:08:53 UTC](https://meta.discourse.org/t/odd-markdown-results-unexpected-whitespace-removal/28989 "2015-05-19T13:08:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MT\_](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MT\_](https://meta.discourse.org/u/MT_)\
**Post date:** [27.Октябрь.2015 15:01:49 UTC](https://meta.discourse.org/t/odd-markdown-results-unexpected-whitespace-removal/28989/2 "2015-10-27T15:01:49Z")

</div>

Below are some specific information on how to reproduce the bug and simplified testcases (planned to post this as a bug report, but noticed there is an existing similar thread, so commenting instead):

**Bug: whitespace disappears after two adjacent inline code fragments**

There is no visible whitespace (though there is in source markdown) after two adjacent code fragments if:

- the fragments are separated with whitespace or with a single nonwhitespace character _not_ surrounded with whitespace;
- _and_ there is another inline code fragment _after_ noncode text placed after the first two code fragments.

**Testcases:**

`foo` `bar` (not code) `code`.

`foo`/`bar` (not code) `code`.

* * *

For nonwhitespace separator, a workaround is to add a space before and/or after the separator:

`foo` / `bar` (not code) `code`.

I am not aware of a workaround for fragments separated with just whitespace.

* * *

This looks like a specific bug of the Discourse flavor of Markdown since, for example, GitHub’s markdown parser is **not** affected.

---

_[View the full topic](https://meta.discourse.org/t/odd-markdown-results-unexpected-whitespace-removal/28989)._
