Table in the shared note does not respect cell alignments


#1

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


(Takuya Matsuyama) #2

Hi,

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


#3

I use Safari Version 11.0 (13604.1.38.1.6).

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


(Takuya Matsuyama) #4

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 |

#5

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.


(Takuya Matsuyama) #6

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


(GLaDoS) #7

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


(Takuya Matsuyama) #8

Hi @ZeroThe2nd,

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


(Takuya Matsuyama) #9

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


(GLaDoS) #10

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