Skip to content

media-marker.ts#

View Markdown

Source

2 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

2 symbols 1 functions 1 variables 1 parameters 1 returns

Reference#

fnhasMediaMarker(html: string): Promise<boolean>True when the document contains any tag the transform could rewrite. The list c…

True when the document contains any tag the transform could rewrite.

The list comes from the Rust registry rather than a copy kept here. The copy had already drifted: codesandbox was missing, so a page whose only embed was a <CodeSandbox> skipped the transform entirely and shipped the raw tag.

Signature

export async function hasMediaMarker(html: string): Promise<boolean>

View source

Parameters

  • html string

Returns

Promise<boolean>
variableconst TYPESCRIPT_ONLY_TAGS = ["reddit"] as constProviders that live in this package rather than the Rust registry, so the regis…

Providers that live in this package rather than the Rust registry, so the registry cannot name them. Reddit is fetched here, not rendered there.

Signature

const TYPESCRIPT_ONLY_TAGS = ["reddit"] as const

View source