@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
11 lines (10 loc) • 427 B
TypeScript
/**
* Function trimCodeBlock will trim starting and ending code block from the string if it is present.
*
* Note: [🔂] This function is idempotent.
* Note: This is useful for post-processing of the result of the chat LLM model
* when the model wraps the result in the (markdown) code block.
*
* @public exported from `@promptbook/markdown-utils`
*/
export declare function trimCodeBlock(value: string): string;