I need to put an image and text side-by-side in a rst document where I also use Jinja2 for text replacement. I tried to solution given HERE (see also incorrect(?) documentation HERE) but this does not seem to work.
Here is what I have in the rst file:
|myimage| {{ name }}
{{ "-" * name|length }}
...
.. |myimage| image:: /_images/myimage.png
:width: 40%
but after rendering it looks like this:
without showing the image, but literally the text "|myimage|". What is the problem here?