One function

TableDataElement in Textualize/rich

The author described this change as fix inline code in table cells. It counts as a record because the check below fails on the code as it stood at 19c67b9a3 and passes on 7ef2d05ca, with nothing else changed between the two runs.

Fix saved2026-04-12
Sharing licenceMIT · LICENSE
Change size+4 3

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

MarkdownElement corresponding to `td_open` and `td_close` and `th_open` and `th_close`.

The change

2424 self.justify = justify
2525
2626 def on_text(self, context: MarkdownContext, text: TextType) -> None:
27- text = Text(text) if isinstance(text, str) else text
28- text.stylize(context.current_style)
29- self.content.append_text(text)
27+ if isinstance(text, str):
28+ self.content.append(text, context.current_style)
29+ else:
30+ self.content.append_text(text)

The check that tells the two apart

failpass·tests/test_markdown.py::test_inline_code_in_table_cells

Check file tests/test_markdown.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 it19c67b9a3479841e9133bea94607c89ee931d3fc
Broken version dated2026-04-12
Modulerich.markdown
Units changedTableDataElement
Fingerprint468917a9246d3cc7
Checked2026-08-17 by goldset/0.1

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

Other bugs found in Textualize/rich