X-Git-Url: https://projects.mako.cc/source/pyblosxom-markdown2/blobdiff_plain/3731c335e281d859e9577d950dbe76c66fc4321e..ae0eaf9e2f180d93f65b13cef15caa26940c4af3:/markdown-plugin.py diff --git a/markdown-plugin.py b/markdown-plugin.py index 88c58d9..ed01d66 100644 --- a/markdown-plugin.py +++ b/markdown-plugin.py @@ -1,22 +1,23 @@ #!/usr/bin/env python """ -markdown-plugin.py -- A Python-Markdown v2.x plugin for PyBlosxom. +markdown-plugin.py -- A Python Markdown v2.x plugin for PyBlosxom. -This plugin requires Python-Markdown v2.x, which you can download from: +This plugin requires Python Markdown v2.x, which you can download from: http://www.freewisdom.org/projects/python-markdown/ -Extract python-markdown into your pyblosxom plugins dir alongside this -plugin. Your plugins dir should look like this: +Extract the 'markdown' directory from the Python Markdown tarball (the +directory containing __init__.py, not the Markdown-2.x.y directory) into your +pyblosxom plugins dir alongside this plugin. Your plugins dir should look like +this: plugins/ <-- your pyblosxom plugins dir markdown-plugin.py <-- this file - markdown.py <-- the python-markdown command line script - markdown/ <-- directory containing python-markdown's files + markdown/ <-- the Python Markdown module ... <-- (any other pyblosxom plugins) -Now any posts with filenames ending in `.mkdn` will be passed through -python-markdown. +Now any posts with filenames ending in one of the FILENAME_EXTENSIONS defined +below will be passed through python-markdown. Copyright (C) Benjamin Mako Hill, 2005 Updated for python-markdown 2 by seanh 2009 @@ -50,14 +51,13 @@ from Pyblosxom import tools md = markdown.Markdown( #safe_mode=True, output_format='html4', - extensions=[ 'codehilite', # Requires python-pygments - 'extra', # Abbreviations, definition lists, fenced code blocks, - # footnotes, headerid and tables. - #'html_tidy', # Enable this if you have libtidy and uTidylib + extensions=[ #'codehilite', # Requires python-pygments + 'extra', + #'html_tidy', # Requires libtidy and uTidylib #'imagelinks', # Broken? #'meta', #'rss', - 'toc', + #'toc', #'wikilinks' ] )