github / markup

Determines which markup library to use to render a content file (e.g. README) on GitHub
MIT License
5.8k stars 3.41k forks source link

reStructuredText is no longer rendering correctly. #1798

Open define-private-public opened 2 months ago

define-private-public commented 2 months ago

I've got a README here which has an improperly scaled header image at the top: https://github.com/define-private-public/PSRayTracing

It's supposed to look like this: https://gitlab.com/define-private-public/PSRayTracing/-/blob/master/README.rst?ref_type=heads

It was working correctly on GitHub back in January: https://web.archive.org/web/20240101013527/https://github.com/define-private-public/PSRayTracing

ml-evs commented 1 month ago

see https://github.com/orgs/community/discussions/86715 for more info

westurner commented 1 month ago
westurner commented 1 month ago

The contents directive is one advantage of RST (and IIRC AsciiDoc and MediaWiki) over Markdown, because it autogenerates a Table of Contents (TOC). With Markdown there's no standard RST-directive like way, you have to use an Action like toc-generator or another tool in your build to scrape the headings out of the parse tree and generate nested <ul>s of links to fragment URIs within just the current document, for example an ideally-accessible README.

kourouklides commented 1 month ago

.. contents:: stopped working on my repositories, too. It would be good if someone could fix it, please. Thanks.

AndydeCleyre commented 1 month ago

Should the TOC failure be its own new issue, or fall under this umbrella one?

Ev2geny commented 3 weeks ago

I confirm, that .. contents:: stopped working on my directories as well