pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-landslide/patches Add patches/patch-src_landsli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d5ac78309ea
branches:  trunk
changeset: 323479:9d5ac78309ea
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Sat May 11 22:09:21 2019 +0000

description:
Add patches/patch-src_landslide_parser.py

diffstat:

 www/py-landslide/patches/patch-src_landslide_parser.py |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r da48c918c32a -r 9d5ac78309ea www/py-landslide/patches/patch-src_landslide_parser.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-landslide/patches/patch-src_landslide_parser.py    Sat May 11 22:09:21 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_landslide_parser.py,v 1.1 2019/05/11 22:09:21 kamil Exp $
+
+Cherry pick support for `markdown` v3.0+
+
+ - https://github.com/adamzap/landslide/commit/e4005a418f851314ce272fbc8cb5f5e3100568ed
+
+--- src/landslide/parser.py.orig       2015-03-12 03:47:59.000000000 +0000
++++ src/landslide/parser.py
+@@ -58,7 +58,7 @@ class Parser(object):
+             if text.startswith(u'\ufeff'):  # check for unicode BOM
+                 text = text[1:]
+ 
+-            return markdown.markdown(text, self.md_extensions)
++            return markdown.markdown(text, extensions=self.md_extensions)
+         elif self.format == 'restructuredtext':
+             try:
+                 from landslide.rst import html_body



Home | Main Index | Thread Index | Old Index