Skip to content

Commit

Permalink
Merge pull request #309 from syldor/master
Browse files Browse the repository at this point in the history
Fix encofing in metadata output
  • Loading branch information
VikParuchuri authored Oct 22, 2024
2 parents 220b51b + 767c7d6 commit 31f6ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marker/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def save_markdown(out_folder, fname, full_text, images, out_metadata):

with open(markdown_filepath, "w+", encoding='utf-8') as f:
f.write(full_text)
with open(out_meta_filepath, "w+") as f:
with open(out_meta_filepath, "w+", encoding='utf-8') as f:
f.write(json.dumps(out_metadata, indent=4, ensure_ascii=False))

for filename, image in images.items():
Expand Down

0 comments on commit 31f6ee6

Please sign in to comment.