Skip to content

Commit 82f7f99

Browse files
authored
Merge pull request #16 from mbarkhau/patch-1
Fix compatibility with Markdown>=3.4.0
2 parents 0001527 + 8f8ad02 commit 82f7f99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

markdown_blockdiag/parser.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import base64
44

55
from markdown.blockprocessors import BlockProcessor
6-
from markdown.util import etree
76
from markdown_blockdiag.utils import draw_blockdiag, DIAG_MODULES
7+
from xml.etree import ElementTree
88

99
# Python 3 version
1010
try:
@@ -53,6 +53,6 @@ def run(self, parent, blocks):
5353
else:
5454
src_data = 'data:image/svg+xml;charset=utf-8,{0}'.format(url_quote(diagram))
5555

56-
p = etree.SubElement(parent, 'p')
57-
img = etree.SubElement(p, 'img')
56+
p = ElementTree.SubElement(parent, 'p')
57+
img = ElementTree.SubElement(p, 'img')
5858
img.attrib['src'] = src_data

0 commit comments

Comments
 (0)