Convert <figure>s to {% figure %}s