79210670

Date: 2024-11-21 10:16:52
Score: 1
Natty:
Report link

Came to this post many years later already on ionic 7 now. The orignal answer still kind of works but as ionic is now using shadow parts also in ion-toast you have to use the css part for it:

ion-toast::part(message) {
  white-space: pre;
}

and a reminder to use \n for the line break.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nameless