pawamoy / pawamoy/markdown-exec
No output without print and no line breaks
@pawamoy is already working on this.
Since Jun 13, 2024.
- Dominant language
- Python
- Stars
- 174
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
First of all, thanks for this very nice plugin. There are two issues, probably related:
-
Output is only generated with print, not by calling the variable/object.
This will produce nothing:
'''python exec="on" source="material-block"
x=1
x
'''This will work:
'''python exec="on" source="material-block"
x=1
print(x)
'''
1 -
Line breaks are not respected.
This will print the two numbers next to each other, rather than below each other.
'''python exec="on" source="material-block"
x=1
y=1
print(x)
print(y)
'''
1 2
Expected behavior
I would expect the output to be as in the console, so that the code examples are representative of real use.
System (please complete the following information):
Markdown Execversion: 1.6.0- Python version: e.g. 3.10
- OS: Windows
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.