Fix recommonmark parser post-processing.
commit59be638dfec6c143a38fec04495ae26e4142992c
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Mon, 6 May 2024 07:55:16 +0000 (6 07:55 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Mon, 6 May 2024 07:55:16 +0000 (6 07:55 +0000)
tree5e1caa788c38e344dfee74123f396a53059d67bf
parente16bb80a96b41e69d2bf307ae8920f2f8fc70765
Fix recommonmark parser post-processing.

Do not insert a `<system_message>` where it is invalid (paragraphs, …).
Use a `<problematic>` node instead and place the `<system_message>`
at the end of the document.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9687 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/docutils/parsers/recommonmark_wrapper.py
docutils/test/test_parsers/test_recommonmark/test_misc.py