@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
15 lines (14 loc) • 699 B
TypeScript
import type { string_markdown, string_markdown_section } from '../../types/string_markdown';
/**
* Splits the markdown into sections by headings
*
* @public exported from `@promptbook/markdown-utils`
*/
export declare function splitMarkdownIntoSections(markdown: string_markdown): ReadonlyArray<string_markdown_section>;
/**
* TODO: [🏛] This can be part of markdown builder
* Note: [🕞] In past (commit 42086e1603cbed506482997c00a8ee979af0a247) there was much more
* sophisticated implementation of this function through parsing markdown into JSON structure
* and flattening the actual structure
* NOW we are working just with markdown string and its good enough
*/