A simple image block

image_element(url = NULL, alt_text = "image")

Arguments

url

character, URL of the image to be displayed, Default: NULL

alt_text

character, text summary of the image, Default: 'image'

Value

block element class

Details

  • Works with block types: Section, Context

See also

Examples

image_element( url = 'http://placekitten.com/700/500', alt_text = 'Multiple cute kittens.' )
#> { #> "type": "image", #> "image_url": "http://placekitten.com/700/500", #> "alt_text": "Multiple cute kittens." #> }