diff --git a/packages/docs-builder/src/context.ts b/packages/docs-builder/src/context.ts index beb15a2..0a3b685 100644 --- a/packages/docs-builder/src/context.ts +++ b/packages/docs-builder/src/context.ts @@ -146,6 +146,17 @@ export class Context { } } + // Fail the build if a block contains an HTML comment; usually when a comment appears + // it is the result of a misconfigured command block (like for a `section` or `def`), + // and those should never appear in the translation files, so we trap them here + if (text.includes('