linkify-it - v6.1.0
    Preparing search index...

    Interface SchemaOpts

    Custom schema definition.

    interface SchemaOpts {
        validate: (text: string, pos: number, self: LinkifyIt) => number;
        normalize?: (match: Match, self: LinkifyIt) => void;
    }
    Index

    Properties

    Properties

    validate: (text: string, pos: number, self: LinkifyIt) => number

    Checks text after the schema prefix. Should return matched tail length on success, or 0 on fail.

    normalize?: (match: Match, self: LinkifyIt) => void

    Optional function to normalize text and url of matched result, for example for @twitter mentions.