From 82729c1ded3e8c3aca5e3a8947518c2b2df03202 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Wed, 26 Apr 2023 00:42:37 +0200 Subject: [PATCH] Update to support Markdown 3.4. See https://github.com/mozmeao/mdx_outline/pull/1/. --- mdx_outline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdx_outline.py b/mdx_outline.py index 53fa140..6ffe891 100644 --- a/mdx_outline.py +++ b/mdx_outline.py @@ -137,9 +137,9 @@ import re -from markdown.util import etree from markdown import Extension from markdown.treeprocessors import Treeprocessor +from xml.etree import ElementTree __version__ = "1.3.0" @@ -157,7 +157,7 @@ def process_nodes(self, node): if match: depth = int(match.group(1)) - section = etree.SubElement(node, self.wrapper_tag) + section = ElementTree.SubElement(node, self.wrapper_tag) section.append(child) if self.move_attrib: