Skip to content

purrmd


purrmd / ImageLoadErrorEvent

Interface: ImageLoadErrorEvent

Defined in: packages/core/src/core/markdown/image.ts:420

Properties

rawUrl

rawUrl: undefined | null | string

Defined in: packages/core/src/core/markdown/image.ts:426

Markdown 中的原始 URL。


requestUrl

requestUrl: string

Defined in: packages/core/src/core/markdown/image.ts:424

本次加载失败时实际赋给 img.src 的 URL。


retry()

retry: () => boolean

Defined in: packages/core/src/core/markdown/image.ts:428

仅当该 URL 仍在当前文档中时发起一次定向重试。

Returns

boolean


url

url: string

Defined in: packages/core/src/core/markdown/image.ts:422

经过 proxyURL 转换后的稳定 URL,用于识别同一图片。