Skip to content

Laravel 9 Mailable Markdown Render issue #45336

Discussion options

You must be logged in to vote

I just realized that apparently, when the mail markdown is formatted, it gives spaces to the markdown text and components, that's when I get that error. Perhaps we should take a look at this once more as most IDEs will just format the mail so it's worth perhaps noting this in the laravel docs or making a change to reflect the IDE formatting affecting the mail markdown content.

This is what I ended up with form my mail markdown after removing the spaces:

<x-mail::message>
# Hello {{ $name }},

Please click on the link below to login

<x-mail::panel>
Temporay Password: {{ $password }}
</x-mail::panel>

<x-mail::button :url="$register_url">
Login
</x-mail::button>

Thanks,<br>
{{ config('app…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@milosb793
Comment options

@Noyoule
Comment options

Answer selected by discoverlance-com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants