Skip to content

Markdown table alignment ignored #15959

Closed
@oxydicer

Description

@oxydicer
  • Gitea version (or commit ref): 1.14.2

  • Git version: 2.25.1

  • Operating system: Ubuntu 20.04.2 LTS, using the official gitea binary, gitea-1.14.2-linux-amd64

  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • [x ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
  • Log gist:

Description

This bug has already been mentioned in #8577
In our gitea instance, when inserting a markdown like

| a11111    | b1111    | c1111    |
|-----------|:--------:|---------:|
| a1        |    b1    |       c2 |
| a3        |    b2    |       c3 |

The rendering of the markdown does not include the alignment information.
The html code that gets generated looks like

<table>
<thead>
<tr>
<th>a11111</th>
<th>b1111</th>
<th>c1111</th>
</tr>
</thead>
<tbody>
<tr>
<td>a1</td>
<td>b1</td>
<td>c2</td>
</tr>
<tr>
<td>a3</td>
<td>b2</td>
<td>c3</td>
</tr>
</tbody>
</table>

In our case the problem is not restricted to README.md, but to all .md files.

...

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedoutdated/theme/markdowntype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions