Skip to main content

image

Function image 

Source
pub fn image(asset_id: &str, src: &str, alt: &str) -> (Block, (AssetId, Asset))
Expand description

Build an image block and its backing remote image asset.

Returns (block, (asset_id, asset)) so callers can place the asset into Document.assets.