0

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:

enter image description here

without showing the image, but literally the text "|myimage|". What is the problem here?

sinoroc
  • 18,409
  • 2
  • 39
  • 70
Alex
  • 41,580
  • 88
  • 260
  • 469

0 Answers0