Mercurial > wikked
changeset 42:f6721f283a56
Added textile support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 09 Jan 2013 22:01:31 -0800 |
parents | ef9cf617d76f |
children | 0c2e7c26f93c |
files | requirements.txt wikked/wiki.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/requirements.txt Mon Jan 07 17:20:50 2013 -0800 +++ b/requirements.txt Wed Jan 09 22:01:31 2013 -0800 @@ -11,4 +11,5 @@ Whoosh==2.4.1 argparse==1.2.1 py-bcrypt==0.2 +textile==2.1.5 wsgiref==0.1.2
--- a/wikked/wiki.py Mon Jan 07 17:20:50 2013 -0800 +++ b/wikked/wiki.py Wed Jan 09 22:01:31 2013 -0800 @@ -7,6 +7,7 @@ import unicodedata from ConfigParser import SafeConfigParser import markdown +import textile from fs import FileSystem from cache import Cache from scm import MercurialSourceControl @@ -312,7 +313,8 @@ self.formatters = { markdown.markdown: [ 'md', 'mdown', 'markdown' ], - self._passthrough: [ 'txt', 'text', 'html' ] + textile.textile: [ 'tl', 'text', 'textile' ], + self._passthrough: [ 'txt', 'html' ] } self.fs.page_extensions = list(set(itertools.chain(*self.formatters.itervalues())))