# Verbeter de afhandeling van markdown-paragrafen

**URL:** <https://meta.discourse.org/t/improve-markdown-paragraph-handling/161884>\
**Category:** Feature\
**Created:** [24 augustus 2020 om 08:15 UTC](https://meta.discourse.org/t/improve-markdown-paragraph-handling/161884 "2020-08-24T08:15:08Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![deeplow](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@deeplow](https://meta.discourse.org/u/deeplow)\
**Post date:** [24 augustus 2020 om 08:15 UTC](https://meta.discourse.org/t/improve-markdown-paragraph-handling/161884/1 "2020-08-24T08:15:08Z")

</div>

According to the [commonmark’s spec](https://spec.commonmark.org/0.29/#example-74)

> **Paragraph**  
> A line ending is a newline (U+000A), a carriage return (U+000D) not followed by a newline, or a carriage return **and a following newline**.

Or [Github Flavored Markdown spec](https://github.github.com/gfm/#paragraph)

> **Paragraph**  
> A sequence of non-blank lines that cannot be interpreted as other kinds of blocks forms a paragraph. The contents of the paragraph are the result of parsing the paragraph’s raw content as inlines. The paragraph’s raw content **is formed by concatenating the lines** and removing initial and final whitespace.

So,

```
Foo
bar

```

Should render as

```
Foo bar

```

But instead it renders as

```
Foo
bar

```

See the [commonmark example](https://spec.commonmark.org/0.29/#example-74) or the [Gihub’s one](https://github.github.com/gfm/#example-190).

Is this a bug or intended diversion from the spec?

## Use-case

This way of paragraph handling becomes particularly annoying when the some users reply by email, where many email clients (like thunderbird) create line breaks every so characters. Though from the design perspective, email users shouldn’t have to think about this nor change their email settings.

Here’s an example:

 ![discourse-email-reply](https://global.discourse-cdn.com/meta/original/3X/0/2/0256a9c8d3886396aba7c9dede9fecca1e2413ab.png)

The only other situation I can think of where this would also happen is when new users start using discourse, sometimes they make make manual paragraphs this way.

---

_[View the full topic](https://meta.discourse.org/t/improve-markdown-paragraph-handling/161884)._
