Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

rst not recognized as rst when headings skip a level #69

Closed timotheecour closed 2 years ago

timotheecour commented 3 years ago

not sure whether it's the right place to file this but looks like this repo is what's used to highlight rst in GitHub, I've also filled this in https://github.com/github/markup/issues/1446

this won't render as rst:

Heading1
========

Heading2
--------

Heading3
~~~~~~~~

Heading4
========

Heading5
~~~~~~~~

this will:

Heading1
========

Heading2
--------

Heading3
~~~~~~~~

Heading4
========

Heading4b
---------

Heading5
~~~~~~~~

See github/markup#1446 for details.

Alhadis commented 2 years ago

but looks like this repo is what's used to highlight rst in GitHub

It's only used to highlight reStructuredText source in embedded code-samples (such as the examples you posted). Rendering .rst documents for perusal on GitHub is something taken care of by github/markup (not Linguist).

In either case, it's not something this repository has any influence over, so I'm closing this issue in favour of github/markup#1446.