# HG changeset patch # User Brian Neal # Date 1299121215 0 # Node ID 6a686ffb66092e15c3b0d5ea873a1564b6e13491 # Parent a321685505cc1218b173ac4ea067591bb4f9fa49 Trying out a markdown extension to hopefully fix #166. diff -r a321685505cc -r 6a686ffb6609 gpp/core/markup.py --- 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: