The main thing that you are missing is that Markdown is not really designed as a template system, but the syntax of simple text formatting. If you want to include HTML material such as style sheets, you'd better use something like Haml .
Another solution would be to create a simple HTML template around your formatted Markdown content, for example (PHP example, but can be in any language).
<html> <head> <title>My Notes</title> <link href="style.css" rel="stylesheet"> </head> <body> <h1>My notes</h1> <?php markdown(file_get_contents('your_content.md')); ?> </body>
source share