Wordpress 我可以在StructuredText中替换图形指令吗?

Wordpress 我可以在StructuredText中替换图形指令吗?,wordpress,python-sphinx,pandoc,substitution,restructuredtext,Wordpress,Python Sphinx,Pandoc,Substitution,Restructuredtext,我有一个.rst文档,它是使用wp2rst(使用pandoc)从Wordpress导入的。 在导入过程中,我的所有图像都被翻译成替换的。。图像::因此: This is some text |myimage| followed by some more text .. |myimage| image:: https://myiage.png :class:alignnone size-full wp-image-1864 :width: 1075px :height:

我有一个.rst文档,它是使用wp2rst(使用pandoc)从Wordpress导入的。 在导入过程中,我的所有图像都被翻译成替换的
。。图像::
因此:

This is some text |myimage| followed by some more text

.. |myimage| image:: https://myiage.png
    :class:alignnone size-full wp-image-1864
    :width: 1075px
    :height: 135px
我的图片最初有字幕。所以我试过这样的方法:

This is some text |myimage| followed by some more text

.. |myimage| figure:: https://myimage.png
    :class:alignnone size-full wp-image-1864
    :width: 1075px
    :height: 135px

    This is my figure's caption
我在运行Sphinx时遇到以下错误:

警告:替换定义“myimage”为空或无效

以一种更传统的方式处理数字效果很好,但这需要我对整个数字进行重构

This is some text 

.. figure:: https://myimage.png
    :class:alignnone size-full wp-image-1864
    :width: 1075px
    :height: 135px

    This is my figure's caption

followed by some more text
有没有办法为
创建替代品。。图::
相同。。图像::