在列表中的指令后保持缩进
Keep indentation after directive in list
在 RST 中,对于 sphinx 文档和使用数学方程的 sphinx.ext.imgmath
扩展,我想在项目符号列表的中间添加一个方程,但在所述方程之后有第二段并保留项目符号点的缩进级别。我认为这个问题与 math
.
以外的任何其他类型的指令都是一样的
我当前的 RST 代码如下所示:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
.. math::
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
这给出了:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
但我想:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
缩进 math
块及其后的段落。
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
.. math::
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
一致的缩进非常重要。参见 https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#indentation。
在 RST 中,对于 sphinx 文档和使用数学方程的 sphinx.ext.imgmath
扩展,我想在项目符号列表的中间添加一个方程,但在所述方程之后有第二段并保留项目符号点的缩进级别。我认为这个问题与 math
.
我当前的 RST 代码如下所示:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
.. math::
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
这给出了:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
但我想:
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
缩进 math
块及其后的段落。
Introducing the bullet list on zero-th level indentation:
- First bullet point on first level indentation.
.. math::
centered math equation
I would like this to be at the first level indentation because it belongs to the first bullet point but it lands on zero-th level indentation.
- Second bullet point on first level indentation.
一致的缩进非常重要。参见 https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#indentation。