Mercurial > public > sg101
changeset 657:6467eabe74d4
For issue #41, use latest Markdown (2.3.1).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 May 2013 15:49:02 -0500 (2013-05-11) |
parents | 79e785f0bdad |
children | 2adf01661ac5 |
files | requirements.txt requirements_dev.txt tools/mdx_nl2br.py |
diffstat | 3 files changed, 2 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- 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)