转义空格时在内联标记内进行替换

Substitution inside inline markup while escaping whitespace

给定以下 reST 文档

.. |bar| replace:: baz

bolded? :strong:`\ |bar|\ `

bolded? **\ |bar|**

.. This one errors out
.. bolded? **\ |bar|\ **

如何创建粗体替代值?我要

bolded? baz

这里link给在线编辑测试一下:http://rst.ninjs.org/?n=f57ac95e1fe1643572b45d7ae8f8950c&theme=basic

由于 reStructuredText 不支持嵌套内联标记,因此使用样式文本创建引用的唯一方法是使用 "replace" 指令

的替换

http://docutils.sourceforge.net/docs/ref/rst/directives.html#replacement-text