interface Rules {
    array: Rule[];
    blankRule: ReplacementFunction;
    defaultRule: ReplacementFunction;
    keepReplacement: ReplacementFunction;
    options: turndown.Options;
    add(key: Filter, rule: Rule): void;
    forEach(callback: ((rule: Rule, index: number) => any)): void;
    forNode(node: turndown.Node): Rule;
    keep(filter: Filter): void;
    remove(filter: Filter): void;
}

Properties

array: Rule[]
defaultRule: ReplacementFunction
keepReplacement: ReplacementFunction
options: turndown.Options

Methods

  • Parameters

    Returns void

  • Parameters

    • callback: ((rule: Rule, index: number) => any)
        • (rule, index): any
        • Parameters

          • rule: Rule
          • index: number

          Returns any

    Returns void

  • Parameters

    Returns Rule

  • Parameters

    Returns void

  • Parameters

    Returns void