aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/blockprocessors.py1
-rw-r--r--markdown/extensions/def_list.py2
-rw-r--r--markdown/extensions/headerid.py2
-rw-r--r--markdown/treeprocessors.py2
4 files changed, 4 insertions, 3 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py
index 7e6860f..42693c6 100644
--- a/markdown/blockprocessors.py
+++ b/markdown/blockprocessors.py
@@ -14,6 +14,7 @@ as they need to alter how markdown blocks are parsed.
import re
import markdown
+from markdown import CRITICAL, message
class BlockProcessor:
""" Base class for block processors.
diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py
index bd04b03..7a8d9e7 100644
--- a/markdown/extensions/def_list.py
+++ b/markdown/extensions/def_list.py
@@ -84,7 +84,7 @@ class DefListIndentProcessor(markdown.blockprocessors.ListIndentProcessor):
ITEM_TYPES = ['dd']
LIST_TYPES = ['dl']
- def create_item(parent, block):
+ def create_item(self, parent, block):
""" Create a new dd and parse the block with it as the parent. """
dd = markdown.etree.SubElement(parent, 'dd')
self.parser.parseBlocks(dd, [block])
diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py
index f70a7a9..6806818 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -66,7 +66,7 @@ Dependencies:
"""
import markdown
-from markdown import etree
+from markdown import CRITICAL, etree, message
import re
from string import ascii_lowercase, digits, punctuation
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index ca3b02b..97073f4 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -185,7 +185,7 @@ class InlineProcessor(Treeprocessor):
result.append(node)
else: # wrong placeholder
- end = index + len(prefix)
+ end = index + len(self.__placeholder_prefix)
linkText(data[strartIndex:end])
strartIndex = end
else: