Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 454 Bytes

readme.md

File metadata and controls

18 lines (14 loc) · 454 Bytes

Format

Format function is responsible for preprocessing the input and split it into two categories: format tokens and actual content.

Interface

export default function () {
    // initialize

    return function (input) {
        // tokenize input
        // return Array<{ transform: boolean, content: string }>
        // tokens with transform=true are then concatenated and transformations are applied
        return input;
    };
}