1#!/usr/bin/env python 2""" 3Python Markdown, the Command Line Script 4======================================== 5 6This is the command line script for Python Markdown. 7 8Basic use from the command line: 9 10 markdown source.txt > destination.html 11 12Run "markdown --help" to see more options. 13 14See markdown/__init__.py for information on using Python Markdown as a module. 15 16## Authors and License 17 18Started by [Manfred Stienstra](http://www.dwerg.net/). Continued and 19maintained by [Yuri Takhteyev](http://www.freewisdom.org), [Waylan 20Limberg](http://achinghead.com/) and [Artem Yunusov](http://blog.splyer.com). 21 22Contact: markdown@freewisdom.org 23 24Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later) 25Copyright 200? Django Software Foundation (OrderedDict implementation) 26Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b) 27Copyright 2004 Manfred Stienstra (the original version) 28 29License: BSD (see docs/LICENSE for details). 30""" 31 32import logging 33from markdown import COMMAND_LINE_LOGGING_LEVEL 34from markdown import commandline 35 36# Setup a logger manually for compatibility with Python 2.3 37logger = logging.getLogger('MARKDOWN') 38logger.setLevel(COMMAND_LINE_LOGGING_LEVEL) 39logger.addHandler(logging.StreamHandler()) 40 41if __name__ == '__main__': 42 commandline.run() 43