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 |
https://joplinapp.org/markdown/#tables
Yes, that's the way it ought to go.
This is the md-part:
| Samedi, 4. Septembro |||
| --- | *---- *| --- |
| | 11:00 | Checkout Hotel |
| | 11:00 - 15:00 | Drive to Firenze |
And rendered it ends up exactly like so; one continuous line:
| Samedi, 4. Septembro ||| | — | ---- | — | | | 11:00 | Checkout Hotel | | | 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
11:00
Checkout Hotel
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 |
Kai
23 July 2021 16:06
11
Nice idea; I'll try that; thank you!
@dpoulton gave a really nice idea. Alternatively, you could also use the
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 |
| Samedi, 4. Septembro | | |
| --- | :---: | --- |
| :bath: | 11:00 | Checkout Hotel |
| :red_car: | 11:00 - 15:00 | Drive to Firenze |
Render as:
Samedi, 4. Septembro
11:00
Checkout Hotel
11:00 - 15:00
Drive to Firenze
Samedi, 4. Septembro
11:00
Checkout Hotel
11:00 - 15:00
Drive to Firenze
system
Closed
25 August 2021 12:44
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.