Notification ->body('Some **bold** info') -- Markdown not parsed in V3
In V3, Markdown is not parsed when I do
Notification::make()->body('Some **bold** text')->>send();
Is there a replacement method to parse the body?
There is no mention of this change in the V3 documentation or in the "Upgrading from v2.x" guide. It would be great, if the documentation can be updated here.
V3 docs: https://filamentphp.com/docs/3.x/notifications/sending-notifications#setting-body-text
V2 docs: https://filamentphp.com/docs/2.x/notifications/sending-notifications#body6 Replies
Not sure, but maybe try HTML instead?
Or customize like here: https://filamentphp.com/docs/3.x/notifications/customizing-notifications#styling-notifications
I can confirm HTML, just tried:
->body(str()->markdown('...'))
?Great Dennis, thank you for the hint. This works for me....
Notification::make()->body(str('Updated **post** 123')->markdown())->send();
Maye you can add this info to the V3 docs too.
Also, thank you, @PovilasKorop . I really appreciate your Laravel content. πAre showing markdown somewhere? Or what do you think should be adjusted? The docs are inside the
packages/
dir and you can send a PR if you want to improve something.Created a PR: https://github.com/filamentphp/filament/pull/12534