Quoting code snippets

I have a short python code snippet that i want to have within logseq
something similar to this:

import os

# my command
if os.name == "posix":
    print(os.name)  # some command

print("Something else")

This works. but when i want the same code block in a quote

>```
import os

# my command
if os.name == "posix":
    print(os.name)  # some command

print("Something else")
```

It fails

I can sometimes play with angle brackets / hashtags to fix it but that brakes the copy past functionality…
Any ideas how to fix?

Try this:

#+BEGIN_QUOTE
```python
import os

# my command
if os.name == "posix":
    print(os.name)  # some command

print("Something else")
```
#+END_QUOTE

Mind that any mistake can break the whole thing.