One function

convert_file in executablebooks/markdown-it-py

The author described this change as โ€œ๐Ÿ› FIX: CLI crash on non-utf8 character (#247)โ€. It counts as a record because the check below fails on the code as it stood at 6491bc249 and passes on 53ca3e9c2, with nothing else changed between the two runs.

Fix saved2023-02-22
Sharing licenceMIT ยท LICENSE
Change size+1 โˆ’1

What the code was meant to do, written into the code itself as a docstring

Parse a Markdown file and dump the output to stdout.

The change

33 Parse a Markdown file and dump the output to stdout.
44 """
55 try:
6- with open(filename, "r") as fin:
6+ with open(filename, "r", encoding="utf8", errors="ignore") as fin:
77 rendered = MarkdownIt().render(fin.read())
88 print(rendered, end="")
99 except OSError:

The check that tells the two apart

failโ†’passยทtests/test_cli.py::test_non_utf8

Check file tests/test_cli.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it6491bc2491a07a8072e5d40f27eab6430585c42c
Broken version dated2023-02-22
Modulemarkdown_it.cli.parse
Units changedconvert_file
Fingerprint9f614117d897006c
Checked2026-08-17 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.