When the following is parsed, the line that says "this is repeated" appears twice as a paragraph.
=========
section 1
=========
---
abc
---
this is repeated
=========
section 2
=========
It is fixed by:
---- instead of 3 --- above and below abc---Pandoc renders this as expected (at least by me).
sections do not have overlines (upper) only the document title
Fair point, but a bug nonetheless.
@grubert actually that is not documented: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
I think the example should be fine according to that specification.
In any case, it's a bug to have the paragraph repeated.
you are completely right, i just happened to never have used upperlines
but now i know how put chapter titles
please bear with me, if this is not fixed in 0.22
cheers and many thanks
Last edit: Günter Milde 2025-07-20
could you test with the prerelease
make a env, install latest release candidate
run the test
rst2html dbl-par.rsti do not get duplication
This seems to be by-effect of the legacy algorithm for parsing section titles (cf. [bugs:#346]).
This is fixed by [patches:#213].
Related
Bugs:
#346Patches:
#213Last edit: Günter Milde 2025-07-20
The bug is fixed in Docutils 0.22 released 2025-07-29.
Thank you for reporting.