diff --git a/headroom/transforms/content_router.py b/headroom/transforms/content_router.py
index e5905f0fb..3f55cf134 100644
--- a/headroom/transforms/content_router.py
+++ b/headroom/transforms/content_router.py
@@ -1214,6 +1214,11 @@ def _resolve_detect_backend() -> str:
_DETECT_TIMEOUT_ENV = "HEADROOM_DETECT_TIMEOUT_SECS"
_DEFAULT_DETECT_TIMEOUT_SECS = 5.0
+# A complete document starts with a DOCTYPE or the root element. The HTML
+# detector scores tags anywhere in the sample, so this is what separates a real
+# page from a fenced example embedded in prose.
+_TOP_LEVEL_HTML_DOCUMENT = re.compile(r"^\s*(?:])", re.IGNORECASE)
+
def _detect_timeout_secs() -> float:
"""Watchdog budget (seconds) for one native detect call.
@@ -3507,6 +3512,31 @@ class ContentRouter(Transform):
# trust it over the regex heuristics.
if detection.content_type == ContentType.SOURCE_CODE and detection.confidence >= 0.8:
return self._strategy_from_detection(detection)
+ # Same false-positive shape on a complete HTML document: embedded
+ # JSON (``
+
+
+
+
+Field Jacket
+The Field Jacket is cut from a waxed cotton shell that sheds light rain without feeling stiff.
+Two chest pockets and two hand pockets close with brass snaps and the collar stands up on its own.
+We recommend sizing down if you plan to layer it over a sweater during colder months.
+Every jacket is finished by hand in our workshop and ships within two business days.
+Returns are accepted for thirty days as long as the tags are still attached to the garment.
+Care instructions are printed on the inner label so sponge clean only and never machine wash.
+
+
+
+