Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

80%
+6 −0
Q&A Markdown table alignment only renders correctly in preview

Codidact posts support Markdown tables. For example, the following raw text: Column 1 | Column 2 -------- | -------- Data A | Data B Data C | Data D renders as: Column 1 Column ...

1 answer  ·  posted 1y ago by trichoplax‭  ·  edited 9mo ago by Monica Cellio‭

#2: Post edited by user avatar Monica Cellio‭ · 2024-02-05T13:31:19Z (9 months ago)
#1: Initial revision by user avatar trichoplax‭ · 2023-10-12T01:00:02Z (about 1 year ago)
Markdown table alignment only renders correctly in preview
Codidact posts support Markdown tables.

For example, the following raw text:

```text
Column 1 | Column 2
-------- | --------
Data A   | Data B
Data C   | Data D
```

renders as:

Column 1 | Column 2
-------- | --------
Data A   | Data B
Data C   | Data D

This works both in the edit preview and in the saved post.

However, alignment of data only works in the edit preview, and is ignored in the saved post.

For example, the following raw text:

```text
Default | Left | Centre | Right
------- | :--- | :----: | ----:
1       | 2    | 3      | 4
5       | 6    | 7      | 8
```

renders as:

Default | Left | Centre | Right
------- | :--- | :----: | ----:
1       | 2    | 3      | 4
5       | 6    | 7      | 8

In the edit preview these are aligned as intended (start editing to see this correct preview), but in the saved post they all have default alignment.