pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
157 stars 88 forks source link

ReST field list renders with spurious cell #155

Closed Lx closed 2 years ago

Lx commented 5 years ago

My README.rst file contains the following snippet:

Source code
^^^^^^^^^^^

Pull requests are gratefully received and considered.

:GitHub repository: https://github.com/Lx/python-rosteron

which renders on GitHub like this:

rendered ReST on GitHub

but renders on PyPI like this:

rendered ReST on PyPI

It's not a CSS issue—an extra table cell with an &nsbp; is being generated:

<table>
    <col>
    <col>
    <tbody>
        <tr>
            <th>GitHub repository:
        </tr>
        <tr>
            <td>&nbsp;
            <td><a href="https://github.com/Lx/python-rosteron" rel=nofollow>https://github.com/Lx/python-rosteron</a>
            </td>
        </tr>
    </tbody>
</table>

(The intermittent lack of </th> and </td> is not a typo.)

Lx commented 5 years ago

This issue additionally exists here: https://pypi.org/project/metlinkpid/

mondeja commented 2 years ago

Reported with minimal reproducible example in docutils bug tracker.

Lx commented 2 years ago

I note that a fix is pushed but my documents on PyPI are still currently affected. Would it be more appropriate to keep this issue open until the fix propagates to the site?

di commented 2 years ago

The fix was pushed to PyPI in https://github.com/pypa/warehouse/pull/10480. PyPI will eventually re-render your projects description with the new version of this library, but this happens slowly, in batches, over a period of time.