Last active
June 25, 2020 11:25
-
-
Save gavincampbell/72a485049ab2b0dba3ea34655607b5c3 to your computer and use it in GitHub Desktop.
Update a markdown file to use hugo figure shortcode instead of markdown img links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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