signal-desktop/ts/components/conversation/MessageBody.md

1.2 KiB

Plain text

<MessageBody text="Plain text message" />
<MessageBody text="Plain text message\n\nWith a new line." />

Jumbo emoji

<MessageBody text="🔥" />
<MessageBody text="🔥🔥" />
<MessageBody text="🔥🔥🔥🔥" />
<MessageBody text="🔥🔥🔥🔥🔥🔥🔥🔥" />
<MessageBody text="🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥" />

Text and emoji

<MessageBody text="Plain text 🔥message. With 🔥emoji🔥 sprinkled 🔥about" />
<MessageBody text="🔥Message starting and ending with emoji🔥" />
<MessageBody text="This before and after link. Before. https://somewhere.com After." />
<MessageBody text="Link https://somewhere.com\nWhat do you think? How about this one? \n\nhttps://anotherlink.com" />
<MessageBody text="Link https://somewhere.com\nWhat do you think? How about this one? \n\nhttps://anotherlink.com" />
<MessageBody text="should not render as link:\nmailto:someone@somewhere.com\nftp://something.com\n//local/share\n\\local\share\n\nshould render as link:\ngithub.com\nhttps://blah.com" />