diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx index ff8a72f03f7..90caa68e537 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/highlight-ts.tsx @@ -11,8 +11,9 @@ import {RawHtml} from './raw-html'; import {codeToHtml} from '../shiki/shiki'; /** Component to render a header of the CLI page. */ -export function HighlightTypeScript(props: {code: string; }) { +export function HighlightTypeScript(props: {code: string}) { const result = codeToHtml(props.code, 'typescript'); + const withScrollTrack = result.replace(/^(