Mercurial > public > sg101
changeset 353:6a686ffb6609
Trying out a markdown extension to hopefully fix #166.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 03 Mar 2011 03:00:15 +0000 |
parents | a321685505cc |
children | 26956137b890 |
files | gpp/core/markup.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/core/markup.py Wed Mar 02 03:16:19 2011 +0000 +++ b/gpp/core/markup.py Thu Mar 03 03:00:15 2011 +0000 @@ -18,7 +18,8 @@ # Unicode support only in markdown v1.7 or above. Version_info # exists only in markdown v1.6.2rc-2 or above. self.unicode_support = getattr(_markdown, "version_info", None) >= (1, 7) - self.md = _markdown.Markdown(safe_mode=safe_mode, extensions=['urlize']) + self.md = _markdown.Markdown(safe_mode=safe_mode, + extensions=['urlize', 'nl2br']) def convert(self, s): if self.unicode_support: