Created
August 2, 2013 18:13
-
-
Save jmakeig/6142083 to your computer and use it in GitHub Desktop.
Converts leading double spaces into asterisks mostly for converting to Markdown.
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
perl -pe '1 while s/\G {2}/*/gc' | perl -pe 's/^(.)/*\1/' | perl -pe 's/^(\*+)/\1 /' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment