From 67623a9b4a3c69fed72180cf2f61873b0a6a0239 Mon Sep 17 00:00:00 2001 From: Spencer Stecko Date: Thu, 4 Feb 2021 06:35:30 -0800 Subject: [PATCH 1/3] upgrade markdown to 3.1.1 --- pinax/blog/parsers/markdown_parser.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pinax/blog/parsers/markdown_parser.py b/pinax/blog/parsers/markdown_parser.py index 83b1688..67534c9 100644 --- a/pinax/blog/parsers/markdown_parser.py +++ b/pinax/blog/parsers/markdown_parser.py @@ -1,9 +1,9 @@ from markdown import Markdown -from markdown.inlinepatterns import IMAGE_LINK_RE, ImagePattern +from markdown.inlinepatterns import IMAGE_LINK_RE, ImageInlineProcessor from pinax.images.models import Image -class ImageLookupImagePattern(ImagePattern): +class ImageLookupImagePattern(ImageInlineProcessor): def sanitize_url(self, url): if url.startswith("http"): diff --git a/setup.py b/setup.py index d7f6d1f..8be1a27 100644 --- a/setup.py +++ b/setup.py @@ -95,7 +95,7 @@ install_requires=[ "django>=2.2", "django-appconf>=1.0.1", - "markdown==2.6.11", + "markdown==3.1.1", "pillow>=3.0.0", "pinax-images>=3.0.1", "pygments>=2.0.2", From 3a0c526b5d2def98496f75a475669322a7997af3 Mon Sep 17 00:00:00 2001 From: Spencer Stecko Date: Thu, 4 Feb 2021 06:40:15 -0800 Subject: [PATCH 2/3] update version and readme --- README.md | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d5fef2..790add6 100644 --- a/README.md +++ b/README.md @@ -399,6 +399,10 @@ Both templates ship already configured to work out of the box. ## Change Log +### 8.1.0 + +* Upgrade Markdown from 2.6.11 to 3.1.1 + ### 8.0.1 * Change `from django.utils.functional import curry` to `from functools import partial as curry` diff --git a/setup.py b/setup.py index 8be1a27..243a80a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -VERSION = "8.0.1" +VERSION = "8.1.0" LONG_DESCRIPTION = """ .. image:: http://pinaxproject.com/pinax-design/patches/pinax-blog.svg :target: https://pypi.python.org/pypi/pinax-blog/ From c97ec44a8190c6f22c4d86e524d4de954bfabbb6 Mon Sep 17 00:00:00 2001 From: Spencer Stecko Date: Thu, 4 Feb 2021 06:41:02 -0800 Subject: [PATCH 3/3] added self to authors --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 29bd79f..5defd2c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -25,3 +25,4 @@ Hugo David-Boyet Benjamin Kampmann Merlin Dienst Mfon Eti-mfon +Spencer Stecko