# HG changeset patch # User Brian Neal # Date 1368305342 18000 # Node ID 6467eabe74d47be25281b5aa9bde1117996922f2 # Parent 79e785f0bdad3486abcd21bc5fe7e5e0472ef716 For issue #41, use latest Markdown (2.3.1). diff -r 79e785f0bdad -r 6467eabe74d4 requirements.txt --- a/requirements.txt Sat May 11 15:22:45 2013 -0500 +++ b/requirements.txt Sat May 11 15:49:02 2013 -0500 @@ -1,5 +1,5 @@ Django==1.4.5 --e git://github.com/waylan/Python-Markdown.git@067d88bc41c7924c9087b724ff5247235243ce6b#egg=Markdown-dev +Markdown==2.3.1 MySQL-python==1.2.4 -e git+https://github.com/gremmie/django-elsewhere.git@1203bd331aba4c5d4e702cc4e64d807310f2b591#egg=django_elsewhere-dev django-haystack==1.2.7 diff -r 79e785f0bdad -r 6467eabe74d4 requirements_dev.txt --- a/requirements_dev.txt Sat May 11 15:22:45 2013 -0500 +++ b/requirements_dev.txt Sat May 11 15:49:02 2013 -0500 @@ -1,5 +1,5 @@ Django==1.4.5 --e git://github.com/waylan/Python-Markdown.git@067d88bc41c7924c9087b724ff5247235243ce6b#egg=Markdown-dev +Markdown==2.3.1 MySQL-python==1.2.4 django-debug-toolbar==0.9.4 -e git+https://github.com/gremmie/django-elsewhere.git@1203bd331aba4c5d4e702cc4e64d807310f2b591#egg=django_elsewhere-dev diff -r 79e785f0bdad -r 6467eabe74d4 tools/mdx_nl2br.py --- a/tools/mdx_nl2br.py Sat May 11 15:22:45 2013 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -""" -A python-markdown extension to treat newlines as hard breaks; like -StackOverflow and GitHub flavored Markdown do. - -""" -import markdown - - -BR_RE = r'\n' - -class Nl2BrExtension(markdown.Extension): - - def extendMarkdown(self, md, md_globals): - br_tag = markdown.inlinepatterns.SubstituteTagPattern(BR_RE, 'br') - md.inlinePatterns.add('nl', br_tag, '_end') - - -def makeExtension(configs=None): - return Nl2BrExtension(configs)