When I'm using ->markdown()
method for send markdown mail in Laravel and using example used in Laravel Doc, I see that instead of a button in my E-Mail I see the plain HTML code.
my template :
@component('mail::message')
# Order Shipped
Your order has been shipped!
@component('mail::button', ['url' => $url])
View Order
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent
Ok I got my problem in git issus and Laravel Doc :
Do not use excess indentation when writing Markdown emails. Markdown parsers will render indented content as code blocks.
But phpstorm reformat my code that cause markdow render my inner components as code snippet.