Table in the shared note does not respect cell alignments

When I have following header:

|       | Header 1 | Header 2 | Header 3 | Header 4 | Header 5 |
|-------|:--------:|:--------:|:--------:|:--------:|:--------:|

then the rendered table does not respect the alignment restriction. E.g. in this case the values in the table should be centered but they are not.

David

Hi,

What is your browser?
It works on Safari, Chrome and Firefox:

I use Safari Version 11.0 (13604.1.38.1.6).

I will try resyncing notes, maybe there was some old version cached.

You use the latest Safari, that’s not a problem.
This markdown expression should work:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

Hi @David_Kaya,

I tested on my end and I could confirm that is is working.
I used the following code;

| | Header 1  | Header 2 | Header 3  | Header 4 | Header 5  | 
|-------|--------:|:--------|:--------:|--------:|:--------|
| a | right | left | center | right | left |
| b | right | left | center | right | left |

to get …

Header 1 Header 2 Header 3 Header 4 Header 5
a right left center right left
b right left center right left

Tested on MacOS, Safari, Chrome and FF. I’m using Inkdrop 3.11.0.

marking as resolved but if you still have this problem please report again.

Working the OSX Inkdrop App. I was checking the Markdown Example file for reference on tables. I noticed they weren’t rendering properly in the preview.

As the previous messages stated as well (hence me replying here instead of making a new thread), the column alignment isn’t properly showing. I’ve checked the inspector, and it seems that the text-align: center/right aren’t being added.

Screenshot:

System info:
MacBook Air (13-inch, Early 2015)
MacOS High Sierra 10.13.6 (17G65)
Safari version: 12.0 (13606.2.11)
Inkdrop version: 3.22.1

Hi @anon4309311,

Thank you for the report.
Ah, that’s a regression from the updated library!
I’ll fix it.

1 Like

Hi @anon4309311,
v3.22.2 should fix this problem. Please check it out.

1 Like

@craftzdog That did fix it.
Thank you for the quick response and the mention in the changelog :smile:

1 Like