Created
January 13, 2015 16:00
-
-
Save ggarnier/2e0b3fa898050c072fe0 to your computer and use it in GitHub Desktop.
textile_to_md.sed
This file contains hidden or 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 -f textile_to_md.sed original.textile > destination.md | |
s/"\([^"]*\)":\([^\. ]*\.html\)/[\1](\2)/g | |
s/^h3[^.]*\./###/ | |
s/^h4\./####/ | |
s/^h5\./#####/ | |
s/^<js>$/~~~json/ | |
s/^<\/js>$/~~~/ | |
s/^<plain>$/~~~sh/ | |
s/^<\/plain>$/~~~/ | |
s/bq\./>/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment