posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.42k stars 48 forks source link

Update signature for tab_spanners to indicate label can be md(), html() result #348

Open machow opened 1 month ago

machow commented 1 month ago

https://github.com/posit-dev/great-tables/pull/345 supported having more than a single spanner. As a part of that, we added some quick logic for labels that are md() and html() result objects.

Let's be sure to...

(Alternatively we could use structural subtyping and support anything with a specific attribute, but I'd lock it down for now!)