projects
/
pyblosxom-markdown2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some tidying up.
[pyblosxom-markdown2]
/
markdown-plugin.py
diff --git
a/markdown-plugin.py
b/markdown-plugin.py
index 9a5e9e1c9b124a800549884e17ddc7d8083cb57b..e8fa4155bba6f562103aec7445d58762275b26df 100644
(file)
--- a/
markdown-plugin.py
+++ b/
markdown-plugin.py
@@
-40,26
+40,18
@@
USA.
"""
PREFORMATTER_ID = 'markdown'
FILENAME_EXTENSIONS = ('txt','text','mkdn','markdown','md','mdown','markdn','mkd')
"""
PREFORMATTER_ID = 'markdown'
FILENAME_EXTENSIONS = ('txt','text','mkdn','markdown','md','mdown','markdn','mkd')
-_version__ = '0.
2
'
+_version__ = '0.
3
'
__author__ = 'Benjamin Mako Hill <mako@atdot.cc>'
__author__ = 'seanh <snhmnd@gmail.com>'
__author__ = 'Benjamin Mako Hill <mako@atdot.cc>'
__author__ = 'seanh <snhmnd@gmail.com>'
-import
re,
codecs
+import codecs
import markdown
from Pyblosxom import tools
md = markdown.Markdown(
#safe_mode=True,
output_format='html4',
import markdown
from Pyblosxom import tools
md = markdown.Markdown(
#safe_mode=True,
output_format='html4',
- extensions=[ #'codehilite', # Requires python-pygments
- 'extra',
- #'html_tidy', # Requires libtidy and uTidylib
- #'imagelinks', # Broken?
- #'meta',
- #'rss',
- #'toc',
- #'wikilinks'
- ]
+ extensions=[ 'extra',]
)
def cb_entryparser(args):
)
def cb_entryparser(args):
@@
-72,9
+64,7
@@
def cb_preformat(args):
return parse(''.join(args['story']))
def parse(story):
return parse(''.join(args['story']))
def parse(story):
- # Convert the ASCII text to HTML with python-markdown.
html = md.convert(story)
html = md.convert(story)
- # Reset python-markdown ready for next time.
md.reset()
return html
md.reset()
return html
Benjamin Mako Hill
||
Want to submit a patch?