Support for receiving formatted messages
Co-authored-by: Alvaro Carrasco <alvaro@signal.org>
This commit is contained in:
parent
d34d187f1e
commit
d9d820e72a
72 changed files with 3421 additions and 858 deletions
|
@ -10,7 +10,7 @@ import { isLinkSneaky, shouldLinkifyMessage } from '../../types/LinkPreview';
|
|||
import { splitByEmoji } from '../../util/emoji';
|
||||
import { missingCaseError } from '../../util/missingCaseError';
|
||||
|
||||
const linkify = LinkifyIt()
|
||||
export const linkify = LinkifyIt()
|
||||
// This is all TLDs in place in 2010, according to [IANA's root zone database][0]
|
||||
// except for those domains marked as [a test domain][1].
|
||||
//
|
||||
|
@ -319,7 +319,7 @@ export type Props = {
|
|||
renderNonLink?: RenderTextCallbackType;
|
||||
};
|
||||
|
||||
const SUPPORTED_PROTOCOLS = /^(http|https):/i;
|
||||
export const SUPPORTED_PROTOCOLS = /^(http|https):/i;
|
||||
|
||||
const defaultRenderNonLink: RenderTextCallbackType = ({ text }) => text;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue