Sphinx Note Block 在代码块下的列表中?

Sphinx Note Block in a list under a code block?

我有问题。如果我想将注释块放在代码块下的列表中,它会包含在代码块中。如果我取消缩进,清单编号会在注释后重新开始。所以基本上,我需要的是:

Fixed list example
------------------

#. First do spam
#. Then do ``eggs``::

   some_code_stuff()

   .. note::

      Nobody expects the Spanish Inquisistion

#. Then do spam and ``eggs``.

列表应在注释块后继续 3。但是目前, ..note 块只是显示,就好像它是代码一样(由于之前的代码块)。有任何想法吗?

有点相关:

所以以下是有效的:

Fixed list example
------------------

#. First do spam
#. Then do ``eggs``:

   .. code-block:: python

      some_code_stuff()

   .. note::

      Nobody expects the Spanish Inquisistion

#. Then do spam and ``eggs``.