// engine/spec-format/text-fences.ts — SPEC-724: Strip fenced code blocks from markdown prose.
/**
 * Remove all fenced code blocks (``` or ~~~) from markdown text.
 * Returns the remaining prose only, preserving line structure.
 */
export function stripFencedBlocks(md) {
    // Match ``` or ~~~ fences (with optional language specifier) spanning multiple lines
    return md.replace(/^(`{3,}|~{3,})[^\n]*\n[\s\S]*?^\1\s*$/gm, '');
}
//# sourceMappingURL=text-fences.js.map