Prepare HTML emails given a Markdown document.
Unfortunately, it assumes you're running under Gnome (to allow for live-browser prviews.)
Good if you want to send HTML email.
-
Tags specified tags in an email with Google Analytics parameters
-
Converts Markdown to HTML (if -p [plaintext] paramter is not specified)
-
Wraps HTML in specified header and footer template files
-
Copies result to clipboard
If the template files ./template/{header,footer}.html
are found,
then output is also wrapped with these files.
By default, the basename of the Markdown file is used as the campaign name given to Google Analytics.
By default, the name of the folder that contains the Markdown file is used as the traffic source value given to Google Analytics.
-
Python's pip package manager. In Debian install it as:
sudo apt-get install python-pip
-
python-markdown module. Install it:
sudo pip install markdown
-
pynliner module. Install it:
sudo pip install cssutils sudo pip install pynliner
-
A utility to allow us to launch the preview in a browser:
sudo pip install desktop
-
Gnome window manager (since my copy-to-clipboard is not platform independent in its current form)
python markdownmail.py [campaign-name.markdown]
Copyright (c) 2012 Eoin Ó Conchúir.
Markdown Mail is licensed under The MIT License provided by the Open Source Initiative. See the file COPYING for the license.
Contact Eoin at [email protected].
I welcome questions and pullrequests at this project's GitHub repo.