wrap block class objects in a list

wrap_blocks(...)

Arguments

...

block elements

Value

list of blocks elements

See also

Examples

wrap_blocks( image_element( url = 'https://image.freepik.com/free-photo/red-drawing-pin_1156-445.jpg', alt_text = 'images' ), block_text( text = 'Location: **Dogpatch**' ) )
#> [ #> { #> "type": "image", #> "image_url": "https://image.freepik.com/free-photo/red-drawing-pin_1156-445.jpg", #> "alt_text": "images" #> }, #> { #> "type": "mrkdwn", #> "text": "Location: **Dogpatch**" #> } #> ]