session-desktop/ts/components/conversation/Linkify.md

815 B

<Linkify text="https://somewhere.com" />
<Linkify text="https://somewhere.com Yes? No? https://anotherlink.com" />
<Linkify text="Before. https://somewhere.com After." />
<Linkify text="Plain text" />
<Linkify text="smailto:someone@somewhere.com - ftp://something.com - //local/share - \\local\share" />
<Linkify text="github.com - https://blah.com" />
const renderNonLink = ({ text, key }) => (
  <span key={key}>This is my custom non-link content!</span>
);
<Linkify text="Before github.com After" renderNonLink={renderNonLink} />;