Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll converting every newline as line break

I'm using Jekyll with kramdown to make a static site and I noticed today that whenever I continued the same sentence to a new line, Jekyll is inserting a <br /> tag there. It never used to happen before.

Since all my markdown files don't cross the 80 char limit, the formatting of the final website looks like crap. Why is Jekyll doing this?

like image 477
user3666471 Avatar asked Aug 21 '14 04:08

user3666471


1 Answers

I've tested this behavior on Jekyll 1.5 to 2.2.

For me, this setup causes Kramdown to replace newlines by BRs.

kramdown:
  input: GFM

This resolves it :

kramdown:
  input: GFM
  hard_wrap: false
like image 105
David Jacquel Avatar answered Sep 20 '22 17:09

David Jacquel