Skip to content

Commit

Permalink
Python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanH committed Sep 1, 2023
1 parent 904a41f commit 77456d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mdx_outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@


import re
from markdown.util import etree
# from markdown.util import etree
import xml.etree.ElementTree as etree
from markdown import Extension
from markdown.treeprocessors import Treeprocessor

Expand Down Expand Up @@ -216,10 +217,10 @@ def __init__(self, *args, **kwargs):
}
super(OutlineExtension, self).__init__(**kwargs)

def extendMarkdown(self, md, md_globals):
def extendMarkdown(self, md):
ext = OutlineProcessor(md)
ext.config = self.config
md.treeprocessors.add('outline', ext, '_end')
md.treeprocessors.register(ext, 'outline', 500)


def makeExtension(configs={}):
Expand Down

0 comments on commit 77456d7

Please sign in to comment.