Created
March 14, 2016 11:07
-
-
Save AljoschaMeyer/03c973783a1dd8a0df47 to your computer and use it in GitHub Desktop.
Quick markdow preview in the browser using remarkable. Usage: `script.sh input.md output.html`
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
(echo -n '<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Markdown</title> | |
<link rel="stylesheet" href="' && echo -n ~/md2html/style.css && echo '"> | |
</head> | |
<body>' && remarkable $1 && echo ' </body> | |
</html> | |
') > $2 | |
firefox $2 |
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
body { | |
background: #eeeeee; | |
color: #111111; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment