@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
25 lines (24 loc) • 892 B
TypeScript
/**
* 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 LinkifyIt from 'linkify-it';
export interface Match {
index: number;
input?: string;
lastIndex: number;
length?: number;
raw: string;
schema: string;
text: string;
url: string;
}
export declare const linkify: LinkifyIt;
export declare const LINK_REGEXP: RegExp;
export { isSafeUrl } from './is-safe-url';
export { linkifyMatch } from './linkify-match';
export { getLinkMatch } from './get-link-match';
export { normalizeUrl } from './normalize-url';
export { isRootRelative } from './is-root-relative';