Migrate Linkify to Storybook

This commit is contained in:
Chris Svenningsen 2020-08-23 12:32:24 -07:00 committed by Josh Perez
parent d27a15a3eb
commit 15e817c3e2
3 changed files with 70 additions and 45 deletions

View file

@ -7,7 +7,7 @@ import { isLinkSneaky } from '../../../js/modules/link_previews';
const linkify = LinkifyIt();
interface Props {
export interface Props {
text: string;
/** Allows you to customize now non-links are rendered. Simplest is just a <span>. */
renderNonLink?: RenderTextCallbackType;