@signalwire/docusaurus-plugin-llms-txt
Version:
Generate Markdown versions of Docusaurus HTML pages and an llms.txt index file
29 lines • 920 B
TypeScript
/**
* HTML content extraction using selectors
* Handles HTML parsing and metadata extraction
*/
import type { Root } from 'hast';
import type { Logger, MarkdownConversionOptions, ConversionResult } from '../types';
/**
* Extract content, title, and description from HTML AST
* @internal
*/
export declare function extractContent(tree: Root, selectors: readonly string[], logger?: Logger): {
content: Root | null;
title: string;
description: string;
};
/**
* Extract only title and description from HTML
* @internal
*/
export declare function extractHtmlMetadata(html: string): {
title: string;
description: string;
};
/**
* Convert HTML to Markdown with full processing pipeline
* @internal
*/
export declare function convertHtmlToMarkdown(html: string, options: MarkdownConversionOptions, contentSelectors?: readonly string[]): ConversionResult;
//# sourceMappingURL=html-parser.d.ts.map