PRESETS: {
    FAST: {
        simplifiedMarkdownOptions: {
            skip: boolean;
        };
        stripTagsOptions: {
            handleSelfClosingTags: boolean;
        };
        tags: string[];
    };
    QUALITY: {
        simplifiedMarkdownOptions: {
            skip: boolean;
        };
        stripTagsOptions: {
            handleSelfClosingTags: boolean;
        };
        tags: string[];
    };
} = ...

Predefined configurations for HTML processing with different optimization priorities. Each preset contains settings for tag removal and processing options.

Type declaration

  • FAST: {
        simplifiedMarkdownOptions: {
            skip: boolean;
        };
        stripTagsOptions: {
            handleSelfClosingTags: boolean;
        };
        tags: string[];
    }

    Optimized for maximum speed with minimal processing. Removes only essential non-content elements and skips markdown conversion.

    • simplifiedMarkdownOptions: {
          skip: boolean;
      }
      • skip: boolean
    • stripTagsOptions: {
          handleSelfClosingTags: boolean;
      }
      • handleSelfClosingTags: boolean
    • tags: string[]
  • QUALITY: {
        simplifiedMarkdownOptions: {
            skip: boolean;
        };
        stripTagsOptions: {
            handleSelfClosingTags: boolean;
        };
        tags: string[];
    }

    Optimized for content quality and cleanliness. Removes a comprehensive set of non-content elements and converts to simplified markdown. Produces cleaner output at the cost of slightly more processing time.

    • simplifiedMarkdownOptions: {
          skip: boolean;
      }
      • skip: boolean
    • stripTagsOptions: {
          handleSelfClosingTags: boolean;
      }
      • handleSelfClosingTags: boolean
    • tags: string[]