Skip to content

Commit 810ab8e

Browse files
authored
Update extension.py
1 parent 30887b4 commit 810ab8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mkdocs_markmap/extension.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def run(self, lines: List[str]) -> List[str]:
4949

5050
included_paths.append(path)
5151
try:
52-
with open(path, "r", encoding=self.encoding) as r:
53-
markmap = r.read()
52+
markmap: str = path.read_text(encoding=self.encoding)
5453

5554
except Exception as e:
5655
log.error("unable to include file {}. Ignoring statement. Error: {}".format(path, e))

0 commit comments

Comments
 (0)