alembic icon indicating copy to clipboard operation
alembic copied to clipboard

[Question]: Show Tables ?

Open fjolublar opened this issue 3 years ago • 3 comments

Working with md files you can create table like:

Col_Name_1 Col_Name_2
Value_1 Value_2

Trying this in a post doesn't show the table (lines of the table). It just does the sorting.

Any help on how to show also the table?

fjolublar avatar Mar 13 '21 02:03 fjolublar

Looks like my theme is missing some table styles! I think this is the first time it's been requested though. For now you could add some styles to add a background to the heading row and every other row to help with readability. Here's some example code:

thead tr,
tr:nth-of-type(2) {
  background: #f4f4f4;
}

td {
  border: 1px solid #f4f4f4;
}

daviddarnes avatar Mar 13 '21 11:03 daviddarnes

I found this workaround on Stack and it worked for me:

Adding this at the beginning of the post:

<style>
.tablelines table, .tablelines td, .tablelines th {
        border: 1px solid black;
        }
</style>

and this after the tables:

{: .tablelines}

fjolublar avatar Mar 16 '21 13:03 fjolublar

Really nice solution @fjolublar, I'm going to add table styles into the latest update. Thanks for highlighting this issue

daviddarnes avatar Jun 14 '21 08:06 daviddarnes