Files
angular/adev/shared-docs/pipeline/shared
Kam 7bbe2636dc fix(docs-infra): reject malformed code block metadata
The code block tokenizer silently ignored metadata it didn't recognize,
and `expandRangeStringValues` swallowed highlight parse errors, so a
typo like `header="foo.ts"` or a missing `highlight:` key rendered the
block without its header or highlighting and nothing flagged it.

The tokenizer now throws when the metadata contains anything it doesn't
parse or when `highlight` isn't a valid range. The highlight rule also
stops at its closing bracket, so `highlight` no longer swallows keys
that follow it, like `{highlight: [9], header: "hero.service.ts"}`.
2026-09-16 15:03:42 +02:00
..