def body_block_caption_render(caption_tags, base_url=None):
caption_content = []<EOL>supplementary_material_tags = []<EOL>for block_tag in remove_doi_paragraph(caption_tags):<EOL><INDENT>if raw_parser.supplementary_material(block_tag):<EOL><INDENT>for supp_tag in raw_parser.supplementary_material(block_tag):<EOL><INDENT>supplementary_material_tags.append(supp_tag)<EOL><DEDENT>continue<EOL><DEDENT>for block_content in body_block_content_render(block_tag, base_url=base_url):<EOL><INDENT>if block_content != {}:<EOL><INDENT>caption_content.append(block_content)<EOL><DEDENT><DEDENT><DEDENT>return caption_content, supplementary_material_tags<EOL>
fig and media tag captions are similar so use this common function