dimanche 8 mars 2015

How to create a figure with caption in Jade

I'm using reveal.js to create a presentation and I'd like it to include figures and figure captions. Here's a slide that I'm trying to make:



section
h2 Slide title
figure
img(src="images/image.png" align="right" width="70%")
figcaption Here are some details about the image.


Unfortunately this just renders the image with the caption appearing as a p element. Anyone know how to correctly create figures with captions in Jade?


Aucun commentaire:

Enregistrer un commentaire