executablebooks / MyST-Parser

An extended commonmark compliant parser, with bridges to docutils/sphinx
https://myst-parser.readthedocs.io
MIT License
708 stars 189 forks source link

{eval-rst} doesn't seem to accept image substitution when later used in {eval-rst} .. csv-table :: directive #629

Open MacqGit opened 1 year ago

MacqGit commented 1 year ago

Describe the bug

context I define an image substitution in the form of:

.. |test| image :: ../path/to/image.png 

to later be used in:


... csv-table ::

   blabla, |test|
   other blabla, ...

expectation I expected image to display.

bug But instead I get an error message saying "ERROR: Undefined substitution referenced"

Note Everything runs fine if I transform the full .md file in .rst (and adapt the content accordingly)

Reproduce the bug

Reproduce by cutting/pasting MD example above.

List your environment

Running Sphinx v4.5.0 myst v0.18.0 HTML pages are in _build/html.

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: