mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Styled dataframes with Markdown formatting don't embed and cause 404 errors

Open choldgraf opened this issue 3 weeks ago • 1 comments
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:

![](xref:issues#jupyter-book-table-output)

Then it renders with a 404 error:

Image

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

choldgraf avatar Oct 27 '25 22:10 choldgraf

I think this might be a variant of #1670

agoose77 avatar Oct 28 '25 09:10 agoose77