Format the caption of the doc visualizer component.