reStructuredText: a unique subsection without previous contents is swallowed

Issue #15902 new
Patrick Samson
created an issue

In a .rst file of the wiki part of a repository:

H1
==
H2-is-missing
-------------

is wrongly only rendered as:

H1


Looking for how to make the title appear, I found two workarounds:

  • have two or more subsections, not just one:
H1
==
H2a-is-OK
---------
H2b-is-OK
---------
  • have some contents above (a text or a transition is enough):
H1
==
----
H2-is-OK
--------

This issue can be directly experienced with the online editor.

Note: it may have some similarities with #14129.

Comments (0)

  1. Log in to comment