Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The second (and further) table on a page doesn't honour alignment in header #825

Open
sdruskat opened this issue Nov 15, 2018 · 0 comments
Labels
A-Style Area: Style (CSS, etc.)

Comments

@sdruskat
Copy link
Contributor

The alignment in table headers seems broken for some cases where you have more than one table per file.

This seems to be an issue with markdown parsing, as the respective HTML tag elements aren't written (source from the rendered last example):

<p>Test 4 Table 1 (mixed headers)</p>
<table>
    <thead>
        <tr>
            <th align="left"> left </th>
            <th align="right"> right </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td align="left"> Long text value </td>
            <td align="right"> Long text value </td>
        </tr>
    </tbody>
</table>
<p>Test 4 Table 2 (mixed headers)</p>
<table>
    <thead>
        <tr>
            <th> left </th>
            <th> right </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td align="left"> Long text value </td>
            <td align="right"> Long text value </td>
        </tr>
    </tbody>
</table>

Right-aligned headers

Test 1 Table 1 (right-aligned headers)

|           Right |           Right |
|----------------:|----------------:|
| Long text value | Long text value |

Test 1 Table 2 (right-aligned headers)

|           Right |           Right |
|----------------:|----------------:|
| Long text value | Long text value |

grafik

Left-aligned headers

Test 2 Table 1 (left-aligned headers)

| left            | left            |
|:----------------|:----------------|
| Long text value | Long text value |

Test 2 Table 2 (left-aligned headers)

| left            | left            |
|:----------------|:----------------|
| Long text value | Long text value |

grafik

Mixed headers right-left

Test 3 Table 1 (mixed headers)

|           right | left            |
|----------------:|:----------------|
| Long text value | Long text value |

Test 3 Table 2 (mixed headers)

|           right | left            |
|----------------:|:----------------|
| Long text value | Long text value |

grafik

Mixed headers left-right

Test 4 Table 1 (mixed headers)

| left            |           right |
|:----------------|----------------:|
| Long text value | Long text value |

Test 4 Table 2 (mixed headers)

| left            |           right |
|:----------------|----------------:|
| Long text value | Long text value |

grafik

@ehuss ehuss added the A-Style Area: Style (CSS, etc.) label May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Style Area: Style (CSS, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants