Created
July 15, 2014 17:40
-
-
Save y0t4/5347679908921a869e31 to your computer and use it in GitHub Desktop.
markdownの```なコード部分を[code][/code]とかで挟むシェル芸
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
cat printf.md | awk 'BEGIN{i=0} /^$/{print} /^```$/{if(i%2==0){print "[code]"}else{print "[/code]"}i++} /^[^`]{3}/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment