Skip to content

Instantly share code, notes, and snippets.

@AljoschaMeyer
Created March 14, 2016 11:07
Show Gist options
  • Save AljoschaMeyer/03c973783a1dd8a0df47 to your computer and use it in GitHub Desktop.
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`
(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
body {
background: #eeeeee;
color: #111111;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment