Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel: Mail markup for single newline?

When I hit return in the email.blade.php file it does not create a new line. However, according to the markdown rules it should.

Thats my blade file:

@component('mail::message')
# Introduction

First line
Second line

third line...
@endcomponent

and that is how it looks in my browser:

enter image description here

Why is there no line break before Second line?

like image 911
Adam Avatar asked Mar 08 '23 17:03

Adam


1 Answers

Can you show the generated HTML?

I'm guessing it's because you're using soft line breaks instead of hard line breaks. More info here - soft vs hard line breaks.

like image 71
Nikolai Tenev Avatar answered Mar 19 '23 10:03

Nikolai Tenev