Skip to content

Escape row index labels in Markdown tables - #93

Open
bensynapse wants to merge 1 commit into
timvink:masterfrom
bensynapse:fix-index-escaping
Open

bensynapse wants to merge 1 commit into
timvink:masterfrom
bensynapse:fix-index-escaping

Conversation

@bensynapse

Copy link
Copy Markdown

I run Live Tennis API.

With index=True, a row label such as a|b creates an extra Markdown cell. Line breaks in labels or index names split the table across rows.

Scalar row labels and index names now use the existing cell escaping rules. Numeric labels and tuple indices keep their current output. Escaping happens on a copy of the DataFrame.

make test passes all 76 tests on Python 3.10 and 3.14, including Ruff. Seven new cases fail before the fix. Wheel and source builds pass. Codespell passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant