File: support-markdown3.patch

package info (click to toggle)
python-darkslide 4.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,356 kB
  • sloc: python: 1,363; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: extensions is now a named argument to markdown()
From: Andrej Shadura <andrewsh@debian.org>

Bug: https://github.com/ionelmc/python-darkslide/issues/10
Bug-Debian: https://bugs.debian.org/923977
Forwarded: not-needed

--- a/src/darkslide/parser.py
+++ b/src/darkslide/parser.py
@@ -57,7 +57,7 @@
             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 .rst import html_body