I’m looking at Markdown WYSIWYG editors at the moment and naturally when an image is inserted it uses the default markdown syntax e.g.
![Photo of someone](/images/1.jpg) and then the output is simply an
img element with an
But is there a way to manipulate this simple
img element in Hugo without having to modify the .md file?
For example I would like the markdown image to be automatically wrapped inside a
figure element or give it a
class attribute etc.
Maybe Hugo should have an internal shortcode to handle images that are inserted with the markdown syntax, so that a user can override it and set it according to her/his needs…
It would be a very cool feature by the way.
For example one could just include Pen https://sofish.github.io/pen/ as a simple frontend for a Hugo site, create an .md, save it and then publish on the fly.
Or just use Dropbox Paper. There are a lot of options out there.