From b9fb45697173d0ce433337822ebeb3bf0087ec97 Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 9 Sep 2026 12:16:18 +0300 Subject: [PATCH] docs(forms): close the unterminated code fences in the compatForm docs Two of the three `compatForm` overloads open a fenced code block in their `@example` and never close it. The fence then runs to the end of the tag, so the API renderer emits a plain `
` block for those two instead of a
highlighted one.

The result is that on the compatForm API page the first overload's example is
syntax highlighted while the other two, which contain identical code, render as
flat unstyled text.

Rebuilding //adev/src/assets:content with and without this change alters 1 of
1565 pages. That page goes from 6 highlighted and 2 plain code blocks to 8
highlighted and none plain.
---
 packages/forms/signals/compat/src/api/compat_form.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/forms/signals/compat/src/api/compat_form.ts b/packages/forms/signals/compat/src/api/compat_form.ts
index e5d33a98f95..7f658692c2a 100644
--- a/packages/forms/signals/compat/src/api/compat_form.ts
+++ b/packages/forms/signals/compat/src/api/compat_form.ts
@@ -75,6 +75,7 @@ export function compatForm(model: WritableSignal): FieldTree(
  * });
  *
  * nameForm.last().value(); // lastName, not FormControl
+ * ```
  *
  * @param model A writable signal that contains the model data for the form. The resulting field
  * structure will match the shape of the model and any changes to the form data will be written to