We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30887b4 commit 810ab8eCopy full SHA for 810ab8e
mkdocs_markmap/extension.py
@@ -49,8 +49,7 @@ def run(self, lines: List[str]) -> List[str]:
49
50
included_paths.append(path)
51
try:
52
- with open(path, "r", encoding=self.encoding) as r:
53
- markmap = r.read()
+ markmap: str = path.read_text(encoding=self.encoding)
54
55
except Exception as e:
56
log.error("unable to include file {}. Ignoring statement. Error: {}".format(path, e))
0 commit comments