Skip to content

Convert Markdown content into Google Analyitics-tagged HTML and plain email.

License

Notifications You must be signed in to change notification settings

eoinoc/markdown-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

Markdown Mail

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

Technical details

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.

Dependencies

  • 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)

Usage

python markdownmail.py [campaign-name.markdown]

License

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.

About author

Contact Eoin at [email protected].

I welcome questions and pullrequests at this project's GitHub repo.

About

Convert Markdown content into Google Analyitics-tagged HTML and plain email.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages