consolidated fix_bold_caption and fix_fig_caption