Notifications Markup not working as expected?

I'm using this and getting this: Notification::make() ->title('Summer Student: ' . $this->student_name) ->icon('heroicon-o-tag') ->body(Str::markdown('**School:** ' . $this->schoolname . ' **Grade Level:**' . $this->grade_level . ' ')) ->iconColor('danger') ->color('danger') ->persistent() ->send();
No description
5 Replies
Povilas K
Povilas K6mo ago
Not sure why the second isn't converted to bold but you can use direct HTML with <b> tag instead of using str::markdown() Oh, I know: maybe you need space after the closing ** ? @HeartlandTechie After School there's a space symbol, and after Grade Level there isn't
HeartlandTechie
HeartlandTechie6mo ago
In further research it appears to be the number causing the problem. If I put a \ before the number it works . . . but \' in the code makes a \5 . . .
Povilas K
Povilas K6mo ago
Weird..
Aizaysi
Aizaysi6mo ago
solved?
HeartlandTechie
HeartlandTechie6mo ago
Nope . . . not solved . . . I tried to append two str:markdowns to isolate this . . . nothing ->body(Str::markdown('__School:__ ' . $this->schoolname . ' __Grade Level:__ ' . $this->grade_level . ' ')) Ultimately - ->body('<b>School:</b>' . $this->schoolname . ' <br><b>Grade Level:</b> ' . $this->grade_level . ' ')
Want results from more Discord servers?
Add your server