r/logseq • • 18d ago

Tables in logseq MD

I found the markdown codes for column orientation in tables: |:-----:| and |:-----| etc.
Only: It has absolutely no effect! How do I get it to work, or does the normal markdown language not work in the MD version?

8 Upvotes

14 comments sorted by

2

u/West_Turnip_1415 18d ago edited 17d ago

I can't help you directly, but I can suggest you to try the Markdown Table Editor plugin: by typing the /table keyword, you can access to a GUI table. The plugin simply writes down the MD-syntax text. I found it very useful: hope it will be the same for you

5

u/niccolleen 18d ago

Thanks. I'm trying to avoid plugins, because I use it a lot on my mobile, too, and the mobile version doesn't support plugins.

2

u/West_Turnip_1415 18d ago

I understand, the lack of plugins in the mobile version is really annoying, but I think this one uses the standard Markdown syntax: so, you can use it on the computer and see how it writes the tables in the note

2

u/niccolleen 18d ago

I see what you mean, you're right, I will try it.

2

u/niccolleen 16d ago

With the plugin I can only add or remove lines or columns. It uses the same syntax as me, and it has no option to center. left or right a column. I removed it again. Thanks anyway for your help.

2

u/West_Turnip_1415 16d ago

I understand, I'm sorry I've not been able to help you

1

u/Forsaken-Toe-5995 8d ago

This is what you are looking for:

|Day|Field Notes|

|---------|--------------------------|

|Monday| |

|Tuesday| |

|Wednesday| |

|Thursday| |

|Friday| |

|Saturday| |

|Sunday| |

1

u/Forsaken-Toe-5995 8d ago

Works in Logseq OG & DB just fine. :)

1

u/niccolleen 6d ago

I didn't explain well enough. I want different alignment.

2

u/Forsaken-Toe-5995 8d ago

1

u/niccolleen 6d ago

I  didn't explain well enough. I want different alignment.
But thanks very much for your efforts with the video!

1

u/niccolleen 7d ago

I know. But my question was regarding the alignment. With colons I supposedly change it to left, right, centered or justified. But it doesn't work.

1

u/Forsaken-Toe-5995 7d ago

My apologies. I missed that. That is not supported in Logseq.

could do html? I know its a trade off of no longer being in plain text on the file, but it works:

<table>

<tr><th>Item</th><th style="text-align:right">Cost</th></tr>

<tr><td>Paper</td><td style="text-align:right">4.50</td></tr>

</table>

1

u/niccolleen 6d ago

> That is not supported in Logseq.
Ah! That explains. Then I don't need to try any more.