Last active
June 16, 2016 18:06
-
-
Save jayvdb/3031ce0502de6cd86fd0ec0cec059919 to your computer and use it in GitHub Desktop.
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
| # git checkout README.md | |
| remark ./README.md > ./README.md.new | |
| sed -i 's/</</g' README.md.new | |
| sed -i 's:\\\\:\\:g' README.md.new | |
| sed -i 's/:/:/g' README.md.new | |
| #sed -i 's/\\\*\\\*/**/;s/^\(\**[^*]*\)\\\*\([^*]*\)$/\1*\2/g' README.md.new | |
| #sed -i 's/\\\*\\\*/**/;s/^\(\*{0,1}[^*]*\)\\\*\([^*]*\)$/\1*\2/g' README.md.new # may need to guard against a star before the current star | |
| sed -Ei 's/\\\*\\\*/**/;s/^(\*{0,1}[^*]*)\\\*([^*]*)$/\1*\2/g' README.md.new | |
| sed -i 's/\\|/|/g' README.md.new | |
| sed -i 's/\\_/_/g' README.md.new | |
| sed -i 's/\\\[/[/g' README.md.new | |
| # mv README.md.new README.md | |
| # git diff README.md | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment