signal-desktop/ts/components/MessageBodyHighlight.md
2019-03-12 17:44:14 -07:00

704 B

Basic replacement

<MessageBodyHighlight
  text="This is before <<left>>Inside<<right>> This is after."
  i18n={util.i18n}
/>

With no replacement

<MessageBodyHighlight
  text="All\nplain\ntext 🔥 http://somewhere.com"
  i18n={util.i18n}
/>

With two replacements

<MessageBodyHighlight
  text="Begin <<left>>Inside #1<<right>> This is between the two <<left>>Inside #2<<right>> End."
  i18n={util.i18n}
/>

With emoji, newlines, and URLs

<MessageBodyHighlight
  text="http://somewhere.com\n\n🔥 Before -- <<left>>A 🔥 inside<<right>> -- After 🔥"
  i18n={util.i18n}
/>

No jumbomoji

<MessageBodyHighlight text="🔥" i18n={util.i18n} />