@promptbook/google
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
16 lines (15 loc) • 727 B
TypeScript
import type { string_markdown } from '../../types/string_markdown';
/**
* Moves every heading of a markdown document deeper into the hierarchy.
*
* This is needed when an independent markdown document is embedded under an
* existing heading, so that the merged document keeps one consistent outline.
* Headings inside fenced code blocks are left untouched.
*
* @param markdown - Markdown document to shift.
* @param headingLevelShift - How many levels the headings should move down.
* @returns Markdown with shifted headings.
*
* @private internal utility for composing markdown documents
*/
export declare function shiftMarkdownHeadingLevels(markdown: string_markdown, headingLevelShift: number): string_markdown;