projects
/
pyblosxom-markdown2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1c10d87
)
Clean up trailing whitespace.
author
Sean Hammond
<seanhammond@lavabit.com>
Tue, 28 Sep 2010 00:42:30 +0000
(
01:42
+0100)
committer
Sean Hammond
<seanhammond@lavabit.com>
Tue, 28 Sep 2010 00:42:30 +0000
(
01:42
+0100)
markdown-plugin.py
patch
|
blob
|
history
diff --git
a/markdown-plugin.py
b/markdown-plugin.py
index f9140f7732d4d5e94decd7bce293d4538beac275..6b03ed92cb96b5e57a71fbd3f3255196b9130d2e 100644
(file)
--- a/
markdown-plugin.py
+++ b/
markdown-plugin.py
@@
-6,7
+6,7
@@
This plugin requires Python-Markdown v2.x, which you can download from:
http://www.freewisdom.org/projects/python-markdown/
http://www.freewisdom.org/projects/python-markdown/
-Extract python-markdown into your pyblosxom plugins dir alongside this
+Extract python-markdown into your pyblosxom plugins dir alongside this
plugin. Your plugins dir should look like this:
plugins/ <-- your pyblosxom plugins dir
plugin. Your plugins dir should look like this:
plugins/ <-- your pyblosxom plugins dir
@@
-15,9
+15,9
@@
plugin. Your plugins dir should look like this:
markdown/ <-- directory containing python-markdown's files
... <-- (any other pyblosxom plugins)
markdown/ <-- directory containing python-markdown's files
... <-- (any other pyblosxom plugins)
-Now any posts with filenames ending in `.mkdn` will be passed through
+Now any posts with filenames ending in `.mkdn` will be passed through
python-markdown.
python-markdown.
-
+
Copyright (C) Benjamin Mako Hill, 2005
Updated for python-markdown 2 by seanh 2009
Copyright (C) Benjamin Mako Hill, 2005
Updated for python-markdown 2 by seanh 2009
@@
-58,7
+58,7
@@
md = markdown.Markdown(
#'meta',
#'rss',
'toc',
#'meta',
#'rss',
'toc',
- #'wikilinks'
+ #'wikilinks'
]
)
]
)
@@
-77,7
+77,7
@@
def to_ascii(char):
else:
return '?'
else:
return '?'
-def parse(story):
+def parse(story):
# Replace any non-ascii characters in the story with '?', so that
# python-markdown doesn't crash.
ascii = "".join([to_ascii(x) for x in story])
# Replace any non-ascii characters in the story with '?', so that
# python-markdown doesn't crash.
ascii = "".join([to_ascii(x) for x in story])
Benjamin Mako Hill
||
Want to submit a patch?