[solved] Markdown tables truncating colums

afaict markdown tables should auto-size their columns to the largest item in that column so everything just fits.

also afaict it doesn’t work properly in most versions of markdown including gfm.

i’ve seen various incredibly stupid ways to “fix” this on stack overflow which all involve lots of css and or html.

is there a decent way of making them work?

ok i’ve tracked down the where the clipping was coming from and it was actually just a bit of css in fastpages-styles.scss

// Handle Overflow With Table Output

table {
  display: block !important;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 75%;
  border:none;
  th{
    text-align: center! important;
  }
  td{
    text-overflow:ellipsis;
    overflow:hidden;
    max-width: 15em;
  }
}

i’ve overridden it in my custom styles and it doesn’t seem to be causing me issues elsewhere…i can’t see why it was there, or at least so restrictive.

i only have this in the table:

and it was being truncated to this:
Screenshot_20200816-203300

@hamelsmu are you the right person to ask?

If you want to make a PR if you have a fix will welcome that. Thanks

sure i can do that but it was in the fastpages css so i wondered if there was a good reason for it i couldn’t see. i’ll put in a pr.