# Does hardLineBreak works with multiple line breaks?

**URL:** <https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522>\
**Category:** support\
**Created:** [June 19, 2018, 3:30am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522 "2018-06-19T03:30:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![whgandalf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/whgandalf/32/2666_2.png) [@whgandalf](https://discourse.gohugo.io/u/whgandalf)\
**Post date:** [June 19, 2018, 3:30am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/1 "2018-06-19T03:30:51Z")

</div>

I have been trying to get an option to add line breaks only hitting the enter key when I am writting, I have tried adding

```
[blackfriday]
  extensions = ["hardLineBreak"]

```

in every posible place, and although I think it works because with one “enter” in the md file adds a line break, I think this one has an special behaviour, I mean, it only works when you are in the middle of a normal paragraph and also it doesn’t work if you add more than two line breaks.

That being said, is there a way to add multiple lines hitting enter multiple times in the md file? or should I just manually add more   
 tags ?

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 19, 2018, 8:25pm UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/2 "2018-06-19T20:25:51Z")

</div>

> [@whgandalf](#):
>
> That being said, is there a way to add multiple lines hitting enter multiple times in the md file? or should I just manually add more  
> tags ?

Could you rephrase that? I add multiple lines by pressing `enter` multiple times all the time. 🙂

---

<div class="post-metadata">

**Author:** ![whgandalf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/whgandalf/32/2666_2.png) [@whgandalf](https://discourse.gohugo.io/u/whgandalf)\
**Post date:** [June 20, 2018, 12:02am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/3 "2018-06-20T00:02:48Z")

</div>

yes, what I mean is, I hit enter one time, I get a new line break, I hit enter four/five/six times, I get just one line break.

I would love to have the behaviour you describe @maiki

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 20, 2018, 1:30am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/4 "2018-06-20T01:30:58Z")

</div>

A line break is for making text stop and continue on the next line. Multiple line breaks in a row isn’t a use case.

I know that might sound strange, but it may be you are trying to use empty lines in your content to control the space between paragraphs. Is that correct?

---

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [June 20, 2018, 3:03am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/5 "2018-06-20T03:03:02Z")

</div>

> [@whgandalf](#):
>
> I hit enter four/five/six times, I get just one line break.

Markdown accepts HTML, so `<br>` should do the trick, but the beauty of markdown is how easy it makes semantic markup. Be sure you’re not confusing content and form…

---

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [June 20, 2018, 8:20am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/6 "2018-06-20T08:20:04Z")

</div>

Instead of multiple line breaks you can make use of a paragraph wrapping an invisible non breaking space:

Markdown:

```auto
&nbsp;

```

HTML

```auto
<p>&nbsp;</p>

```

&nbsp;

&nbsp;

Watch the space above this paragraph 😉

---

<div class="post-metadata">

**Author:** ![whgandalf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/whgandalf/32/2666_2.png) [@whgandalf](https://discourse.gohugo.io/u/whgandalf)\
**Post date:** [June 20, 2018, 3:48pm UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/7 "2018-06-20T15:48:06Z")

</div>

> [@maiki](#):
>
> you are trying to use empty lines in your content to control th

Yes it is, maybe there is a better way to do it, I was thinking on naturally writing in the md file and see similar changes but I know i can add some html tags as well, I think I will use the solution given by @Grob, thx though

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 20, 2018, 8:15pm UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/8 "2018-06-20T20:15:40Z")

</div>

You should not use whitespace and empty lines to create a visual layout. I understand it seems like “natural writing”, but markdown is a not a visual layout system, and on the web we use CSS for what you are going after. 🙂

---

<div class="post-metadata">

**Author:** ![whgandalf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/whgandalf/32/2666_2.png) [@whgandalf](https://discourse.gohugo.io/u/whgandalf)\
**Post date:** [June 20, 2018, 11:04pm UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/9 "2018-06-20T23:04:00Z")

</div>

@maiki, I understand but I have to disagree, I just want to be able to have three line breaks one after the other, for both, making it easy to read to the final user and also to speed the writing. So from my view, that cannot be considered something just visual, and that is actually de reason of Blackfryday’s hardlinebreak… by the way, I think there is not a different solution than a HTML tag, thanks for your input.

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [June 21, 2018, 12:29am UTC](https://discourse.gohugo.io/t/does-hardlinebreak-works-with-multiple-line-breaks/12522/10 "2018-06-21T00:29:44Z")

</div>

😆👍
