pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-landslide/patches



Module Name:    pkgsrc
Committed By:   kamil
Date:           Sat May 11 22:09:22 UTC 2019

Added Files:
        pkgsrc/www/py-landslide/patches: patch-src_landslide_parser.py

Log Message:
Add patches/patch-src_landslide_parser.py


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/py-landslide/patches/patch-src_landslide_parser.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/www/py-landslide/patches/patch-src_landslide_parser.py
diff -u /dev/null pkgsrc/www/py-landslide/patches/patch-src_landslide_parser.py:1.1
--- /dev/null   Sat May 11 22:09:22 2019
+++ pkgsrc/www/py-landslide/patches/patch-src_landslide_parser.py       Sat May 11 22:09:21 2019
@@ -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