Add a :dest: attribute to the raw:: html directive
Values are body (default) or head.
The following file allows to test the syntax
############################################
test docutils raw:: html :dest: body | head
############################################
.. raw:: html
<p> paragraphe HTML </p>
.. raw:: html
:dest: body
<p> paragraphe HTML 2</p>
.. raw:: html
:dest: head
<title>OK</title>
diff output
Logged In: YES
user_id=1014490
Rejected; inserting things into the header of a HTML
document should not be done from within a reST document.
It's the job of a web site building tool (e.g. using
templates or PHP).
If you disagree, please discuss the issue on the mailing
list:
http://docutils.sourceforge.net/docs/user/mailing-lists.html#docutils-users