Skip to content

Commit

Permalink
Use plain dict instead of AttrDict
Browse files Browse the repository at this point in the history
  • Loading branch information
nocarryr committed Aug 1, 2022
1 parent 318dca6 commit 4987fe1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/source/ext/mdreadme.py
Expand Up @@ -9,7 +9,6 @@

from docutils import nodes
from markdown_it.token import Token
from markdown_it.utils import AttrDict
from myst_parser.main import MdParserConfig, default_parser
from myst_parser.docutils_ import Parser as _Parser

Expand All @@ -24,7 +23,7 @@ def parse(self, inputstring: str, document: nodes.document) -> None:
config = MdParserConfig(renderer="docutils", enable_extensions=['linkify'])
parser = default_parser(config)
parser.options["document"] = document
env = AttrDict()
env = {}

tokens = parser.parse(inputstring, env)
if not tokens or tokens[0].type != "front_matter":
Expand Down

0 comments on commit 4987fe1

Please sign in to comment.