Skip to main content

Module preview

Module preview 

Source
Expand description

Who describes a link.

markdown fetches nothing. Resolving a URL’s Open Graph data is an HTTP request and an HTML parse, neither of which a component library has any business carrying, and wasm32-unknown-unknown would spell both differently anyway. Installed once at boot like the highlighter and read at paint: the app answers from its own cache and notifies when a fetch lands.

Structs§

Preview
What a bookmark paints beyond the URL it already has.

Type Aliases§

LinkCard
The card an app paints for a link it owns, in place of the bookmark — see crate::AppExt::set_link_card. None for a link it leaves to the web preview.
LinkHover
The card an app paints over a link it owns while the pointer rests on it — see crate::AppExt::set_link_hover. None leaves the link its bookmark.
LinkPreview
None for a URL the caller has nothing for yet: the card paints its host and repaints when the answer arrives.