-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All newlines were stripped in run only mode #29
Comments
Can you put together an example on codesandbox, or share the concrete HTML you get for that snippet? I think we'll need that to assess what's happening here. |
@srenatus sure, here is the codesandbox URL I just pasted the snippet code to reproduce the issue: ```python
def greet(name):
print(f"Hello, {name}!")
greet("World")
```
<!-- Not working -->
<codapi-snippet sandbox="python" init-delay="500">
</codapi-snippet>
<!-- Working well -->
<!-- <codapi-snippet sandbox="python" editor="basic" init-delay="500">
</codapi-snippet> --> |
#22 was fixed. What is your Codapi widget version? |
Yes, I understand, thank you. Will take a look at it when I have time. |
Fixed in 0.19.7. |
@nalgeon awesome, it's working now. Thanks for fixing it! |
I've this problem when running python code in Docusaurus 3.3.2:
And get this error:
I've also seen this issue #22, @srenatus mentioned that all newlines are stripped in running only mode (without edit mode)
It should be great if this issue can be fixed. Thank you
The text was updated successfully, but these errors were encountered: