Vinyl
    Preparing search index...

    Interface CharactersRule<T>

    A rule definition for an element's text content.

    interface CharactersRule<T> {
        parse: (characters: string) => T;
        stringify: (value: NonNullable<T>) => string;
        type: CHARACTERS;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    parse: (characters: string) => T

    Parses the unescaped/processed characters. This will always be called, but characters may be an empty string if the element has no text content.

    stringify: (value: NonNullable<T>) => string

    Stringifies the value.