# Why does markdown do this? (whitespace trimming and other features)

**URL:** <https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437>\
**Category:** Development\
**Tags:** markdown\
**Created:** [September 18, 2023, 8:34pm UTC](https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437 "2023-09-18T20:34:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [September 19, 2023, 6:09am UTC](https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437/3 "2023-09-19T06:09:36Z")

</div>

> [@Canapin](#):
>
> lines which could make their content harder to read

Actually keeping everything really thight can make things harder to read. Paragraph after an image can be an example.

But… I’m using `<br />` so no biggie at all.

Another but… I’m quite sure that cleaning operation has nothing to do with cleaner reading experience. It comes from code itself. Similar thing than very tired statement that markdown is easier to read on ”code level”. End user is never on that situation.

Well. This is pure meta now.

But I refuse to believe cleaning lines and extra spaces is actually making overall experience better to end user.

---

_[View the full topic](https://meta.discourse.org/t/why-does-markdown-do-this-whitespace-trimming-and-other-features/279437)._
