@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
11 lines (10 loc) • 416 B
TypeScript
/**
* Creates a safe markdown fenced code block even when content contains backticks.
*
* @param content - Raw code content.
* @param language - Optional info-string language label.
* @returns Fenced code block.
*
* @private internal utility of `createStandaloneBookLanguageMarkdown` and of the `ptbk coder` run traces
*/
export declare function getSafeCodeBlock(content: string, language?: string): string;