Created
November 16, 2016 00:12
-
-
Save saborrie/443dc6472da57dad32f68d72b07bc18a to your computer and use it in GitHub Desktop.
Pretty print markdown files in bash
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
rmd () { | |
pandoc $1 | sed 's/<code/<code style="color:cyan;"/g'| elinks -dump -dump-color-mode 1 | sed -r 's/^/ /g;s/ *$//' | (echo && cat && echo) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment