UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

14 lines (13 loc) 683 B
/** * This file has been partially duplicated in packages/linking-platform/linking-common/src/url.ts * Any changes made here should be mirrored there. * Ticket for dedeplication: https://product-fabric.atlassian.net/browse/EDM-7138 * Ticket for fixing linkification of filename-like urls: https://product-fabric.atlassian.net/browse/EDM-7190 */ import type { Match } from './url'; /** * Attempt to find a link match. Tries to use our regex search first. * If this doesn't match (e.g. no protocol), try using linkify-it library. * Returns null if url string empty or no string given, or if no match found. */ export declare function getLinkMatch(str?: string): Match | null;