@mendable/search
Version:
A React component for integrating Mendable Search into your application.
11 lines (10 loc) • 520 B
TypeScript
export declare function splitCodeBlocks(md: string): string[];
interface Result {
doesExist: boolean;
sourceNumber: string | null;
sourceLine: number | null;
}
export declare function findCodeInReferences(codeLines: string[], referenceChunks: Array<any>): Result[];
type CommentFormat = (sourceNumber: number | null, sourceLine: number | null) => string;
export declare function annotateMarkdown(md: string, codeLines: string[], referenceChunks: Array<any>, commentFormat: CommentFormat): string;
export {};