Adding support for figure/figcaption.