Skip to content

rewriteVideoTokens

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-13-upload/video-directive.ts

Rewrite all [[VIDEO:]] / [[GIF:]] tokens in a page's content and collect the per-page ManualVideoGroup rows. Unresolved tokens are dropped (no raw token ever reaches the reader). Idempotent for already-rewritten content (no tokens left → no-op).

Signature

ts
function rewriteVideoTokens(content: string, opts: RewriteVideoOptions): RewriteVideoResult

Parameters

NameType
contentstring
optsRewriteVideoOptions

Returns: RewriteVideoResult

Was this page helpful?

Download as PDF