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