Homepage    |    GitHub    |    API    |    FAQ

Formatting table column with *

Hello,

I am trying to format a column to be centered. I do this by changing the column header from | --- | to | --- | which I thought was the correct way to do it. But as soon as I enter the first *, my table collapses into a collection of normal lines. R containg the content and the formatting bars. Rmoving the * results in the table reappearing correctly. What am I doing wrong?

Cheers,
kai.

Joplin 2.1.9 (prod, win32)

Client ID: 005a2610d4c449ff86002adfe517ff3e
Sync Version: 2
Profile Version: 39
Keychain Supported: Yes

Revision: 882d66383

| Left | Centre | Right |
| --- | :---: | ---: |
| A | B | C |

or

| Left | Centre | Right |
| :--- | :---: | ---: |
| A | B | C |
Left Centre Right
A B C

https://joplinapp.org/markdown/#tables

Yes, that's the way it ought to go.

This is the md-part:

| Samedi, 4. Septembro |||
| --- | *---- *| --- |
| :bath: | 11:00 | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |

And rendered it ends up exactly like so; one continuous line:

| Samedi, 4. Septembro ||| | — | ---- | — | | :bath: | 11:00 | Checkout Hotel | | :red_car: | 11:00 - 15:00 | Drive to Firenze |

Are you using soft breaks?

I have soft breaks enabled, yes. Let me check if disabling them helps.

In markdown a line break is done with an empty line or 2 spaces before a line break.
Markdown usually does not care about line breaks and ignores them, unless you uncheck soft breaks.

Also don't use *, use : to centre the text

| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath:  | 11:00  | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |
Samedi, 4. Septembro
:bath: 11:00 Checkout Hotel
:red_car: 11:00 - 15:00 Drive to Firenze

Thank you both; using : instead of * fixed it; now it looks nice.

Merci beaucoup & cheers,
kai.

One more question though regarding the soft breaks: if I want several tables in a single note separated by several lines, would I do that with several < br > or is there a better method?

That should work. I just find it a bit quicker to add empty h2 headings (##). Fewer key presses...

| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath:  | 11:00  | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |
##
##
##
##
##
| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath:  | 11:00  | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |

Nice idea; I'll try that; thank you!

@dpoulton gave a really nice idea. Alternatively, you could also use the &nbsp; to break lines. Using the same example @dpoulton gave:


| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath:  | 11:00  | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |

&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;

| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath:  | 11:00  | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |

Render as:

Samedi, 4. Septembro
:bath: 11:00 Checkout Hotel
:red_car: 11:00 - 15:00 Drive to Firenze

 
 
 
 
 

Samedi, 4. Septembro
:bath: 11:00 Checkout Hotel
:red_car: 11:00 - 15:00 Drive to Firenze

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.