Skip to main content

render_node_artwork

Function render_node_artwork 

Source
pub fn render_node_artwork(
    bytes: &[u8],
    limits: &ParseLimits,
    options: &ParseOptions,
    target: &ArtworkTarget,
) -> Result<Option<NodeArtwork>, ParseError>
Expand description

Renders the artwork of one node. The presentation is parsed again with every other node’s artwork deferred, so the cost is one parse without rendering plus the one render. The result equals the eager parse’s artwork for that node, or None when the node has none or does not exist.