Don't drop "code" directive content if Warnings are silenced.
commitdb2d4326a850130f850ae40dafa69eb4a52f5e5b
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 16 Dec 2020 10:41:03 +0000 (16 10:41 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Wed, 16 Dec 2020 10:41:03 +0000 (16 10:41 +0000)
tree832458d20536a8a415dc1ded978ec2628d343ee6
parent2a7d93163ae50a088e0eaa7ab80bacef9d37df0a
Don't drop "code" directive content if Warnings are silenced.

Output the content without syntax highlight to prevent
data loss.

It is still recommended to solve the issue instead of just
silencing the warning. (Languages that are unknown to the
Pygments Lexer should be specified as :class: option value
instead of directive argument.)

Thanks to Jérôme Carretero for the report and suggestion.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8596 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/docutils/parsers/rst/directives/body.py
docutils/docutils/utils/code_analyzer.py