aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/treeprocessors.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown/treeprocessors.py')
-rw-r--r--markdown/treeprocessors.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index 7c37ae7..df5e748 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -366,26 +366,9 @@ class InlineProcessor(Treeprocessor):
stack.append((child, self.ancestors[:]))
for element, lst in insertQueue:
- if self.markdown.enable_attributes:
- if element.text and isString(element.text):
- element.text = inlinepatterns.handleAttributes(
- element.text, element
- )
- i = 0
- for obj in lst:
+ for i, obj in enumerate(lst):
newChild = obj[0]
- if self.markdown.enable_attributes:
- # Processing attributes
- if newChild.tail and isString(newChild.tail):
- newChild.tail = inlinepatterns.handleAttributes(
- newChild.tail, element
- )
- if newChild.text and isString(newChild.text):
- newChild.text = inlinepatterns.handleAttributes(
- newChild.text, newChild
- )
element.insert(i, newChild)
- i += 1
return tree