Describe the bug
Stdout created in functions not defined in the code block itself will not be rendered (but shows up in the stdout of the mkdocs run)
To Reproduce
I expect the same rendered output in all three code blocks below:
print("hello")
def hello():
print("hello")
hello()
from somepackage import hello # same definition of hello as before
hello()
The last block executes, and its output shows up in the mkdocs stdout, but the "result" block created by markdown-exec remains empty.
Expected behavior
All three blocks should give the same result.
System (please complete the following information):
mkdocs 1.4.3
markdown-exec 1.6.0
Platform: linux
OS: posix
Python: 3.9.16
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too