Hugo: create a HTML figure for images
Hugo: create a HTML figure for images

Hugo provides a 'figure' shortcode, which is translated into a matching
HTML figure element. However, something (either a bug in Hugo, the figure
shortcode or the Hugo-Learn-Theme) overwrites any manual scaling, i.e.
any 'width=xxx' ends up in the final website as 'width:auto'. So this filter
emits the correct HTML and also allows to write proper Markdown code :)

cagix/pandoc-lecture