"Using a terminal, cd into the directory you want to takes notes.
Use command mdnotes to create a notes directory.
Create your markdown (.md) in the md/ directory.
Use mdnotes to 'compile' your notes into html. These will be located in the html/ folder.
Use mdnotes -p or mdnotes --publish to create pdf's of your notes. These will be located in the pdf/ folder.
If you want to include images in your notes you can place them in the images folder located under ./html/images. Use  to reference an image.
To install gem install mdnotes.
To uninstall gem uninstall mdnotes.
Requires rdiscount and pdfkit for pdf utility.
Install WKHTMLTOPDF for the pdf publishing to work. You can use the following commands:
curl -O http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-OS-X.i368
mv wkhtmltopdf-0.9.9-OS-X.i368 /usr/local/bin/wkhtmltopdf
chmod +x /usr/local/bin/wkhtmltopdf
Or using homebrew
brew install wkhtmltopdf