Debian Unstable has now docutils 0.22.
But when building Streamlink with it, there are some errors causing the build to fail:
/<<PKGBUILDDIR>>/docs/api/validate.rst:72: WARNING: Transition must be child of <document> or <section>. [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:253: ERROR: Indirect hyperlink target (id="linux-appimages") refers to target "linux appimages", which is a duplicate, and cannot be used as a unique reference. [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:262: ERROR: Indirect hyperlink target "appimages" (id="appimages") refers to target "linux appimages", which is a duplicate, and cannot be used as a unique reference. [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:143: ERROR: Duplicate target name, cannot be used as a unique reference: "linux appimages". [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:145: ERROR: Duplicate target name, cannot be used as a unique reference: "linux appimages". [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:253: ERROR: Duplicate target name, cannot be used as a unique reference: "linux appimages". [docutils]
/<<PKGBUILDDIR>>/docs/install.rst:262: ERROR: Duplicate target name, cannot be used as a unique reference: "linux appimages". [docutils]
This can be reproduced by using pip install docutils==0.22.2 and then building the documentation.
This PR fix the errors and the warning.
For the horizontal line, I think the offending commit on docutils side are:
I'm not sure this is an intended forbidden case according to the commit messages, but now it is released in docutils 0.22 :(