mystmd
mystmd copied to clipboard
Styled dataframes with Markdown formatting don't embed and cause 404 errors
trafficstars
When trying to embed a styled pandas DataFrame (with .style.format()) that contains Markdown-formatted content across MyST sites, the embed fails with 404 errors.
Example
For example, the jupyter book table in the jupyter github-data repository has a label jupyter-book-table. If you try to embed it with:

Then it renders with a 404 error:
Which is different from what happens if it doesn't find the label at all.
Things that work
- If the cell output is a dataframe, and not a styled dataframe
- If the labeled thing is a regular markdown table, and not a cell output
I think this might be a variant of #1670