masasam / emacs-easy-hugo

Emacs major mode for managing hugo
https://gohugo.io/tools/editors/#emacs
GNU General Public License v3.0
355 stars 26 forks source link

Add easy-hugo-put-figure and easy-hugo-pull-figure #36

Closed jackbaty closed 6 years ago

jackbaty commented 6 years ago

These are copied from the existing easy-hugo-*-image commands but create a figure shortcode rather than an image tag.

This enables the use of figure shortcodes rather than img tags. Removed "alt" and "width" and added "title" attributes. This was just a matter of preference and may not be to everyone's taste.

Note there seemed to be some tabs vs spaces issues in the original and the new functions are copied/pasted so may suffer from the same thing.

masasam commented 6 years ago

@jackbaty Thank you for pull request. I think it is a very good feature.