# רווחים עוקבים בקוד מוטמע מתכווצים

**URL:** <https://meta.discourse.org/t/consecutive-spaces-in-inline-code-get-collapsed/257585>\
**Category:** UX\
**Tags:** markdown\
**Created:** [9 במרץ,‏ 2023,‏ 9:17am UTC](https://meta.discourse.org/t/consecutive-spaces-in-inline-code-get-collapsed/257585 "2023-03-09T09:17:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [9 במרץ,‏ 2023,‏ 10:58am UTC](https://meta.discourse.org/t/consecutive-spaces-in-inline-code-get-collapsed/257585/4 "2023-03-09T10:58:23Z")

</div>

> [@Canapin](#):
>
> Thanks for the report. I understand the issue, and it’s not strictly a Discourse bug. Discourse uses [markdown-it](https://github.com/markdown-it/markdown-it), and this is its standard behavior.

Looks like it this isn’t compliant with CommonMark. Not that it _has_ to be, but maybe they could be convinced to change to match?

> **[6.1Code spans - CommonMark Spec](https://spec.commonmark.org/0.30/#code-spans)**
>
> Markdown is a plain text format for writing structured documents, based on conventions for indicating formatting in email and usenet posts. It was developed by John Gruber (with help from Aaron Swartz) and released in 2004 in the form of a syntax...

> [@Canapin](#):
>
> If you really need that sometimes, you can use some blank characters that won’t be trimmed but whose widths may be slightly different from a regular space.

Depending on purpose that can be even worse, because it can cause copy / paste confusion.

---

_[View the full topic](https://meta.discourse.org/t/consecutive-spaces-in-inline-code-get-collapsed/257585)._
