Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Update to support Markdown 3.4. See mozmeao/mdx_outline#1.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Apr 25, 2023
1 parent acccfe3 commit 82729c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdx_outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit 82729c1

Please sign in to comment.