Whole file
didix21/mdutils
The author described this change as “fix: Text starting with ** (bold) breaks new_list method”. It counts as a record because the check below fails on the code as it stood at 2a3c2fb11 and passes on ad4b720b6, with nothing else changed between the two runs.
Projectdidix21/mdutils
Fix saved2025-10-18
Sharing licenceMIT · LICENSE.txt
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
fix: Text starting with ** (bold) breaks new_list method
The change
| 49 | 49 | def _is_there_marker_in_item(cls, item: str) -> bool: | |
| 50 | 50 | if ( | |
| 51 | 51 | item.startswith("-") | |
| 52 | - | or item.startswith("*") | |
| 52 | + | or item.startswith("*") and not item.startswith("**") | |
| 53 | 53 | or item.startswith("+") | |
| 54 | 54 | or re.search(r"^(\d\.)", item) | |
| 55 | 55 | ): |
The check that tells the two apart
fail→pass·tests/test_mdutils.py::TestMdUtils::test_new_list_bold_items
Check file tests/test_mdutils.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 it2a3c2fb11c5f88bb545114d03742c86be6f9dcb3
Broken version dated2025-07-10
Modulemdutils.tools.MDList
Units changedMDListHelper
Fingerprint72d512894a14ad49
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in didix21/mdutils
- 2022-10-27MarkDownFile
- 2021-06-07Fix #6: add option to wrap text on new lines, paragraphs and writes
- 2020-09-12Fix #42 Default table's text_align should be '---'
- 2020-06-19MarkDownFile