Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation "notifications/sending-notifications": title & body attribute - Added HTML / Markdown examples #12534

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

camya
Copy link
Contributor

@camya camya commented Apr 28, 2024

Description

This PR updates the "notifications/sending-notifications" documentation of Filament V3.

It adds HTML / Markdown examples for the "notification title & body" attribute. In V2 Markdown was parsed automatically. In V3 this has to be done manually. The example shows how to do it.

See @pxlrbt comment / request for a PR on Discord: https://discord.com/channels/883083792112300104/1233674906995130408/1234164194987737249


Original question asked on Discord:

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#body

@camya camya changed the title title & body attribute - Added HTML / Markdown examples Documentation "notifications/sending-notifications": title & body attribute - Added HTML / Markdown examples Apr 28, 2024
@danharrin danharrin added the documentation Improvements or additions to documentation label Apr 29, 2024
@danharrin danharrin added this to the v3 milestone Apr 29, 2024
@danharrin danharrin merged commit 3d7ec8b into filamentphp:3.x Apr 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants