Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update a markdown file to use hugo figure shortcode instead of markdown img links
sed -i 's/!\[\(.*\)\] \?(https:\/\/.*\/\(.*\))/{{< figure src="\2" caption="\1" >}}/g' index.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.