reflex
reflex copied to clipboard
Markdown Code Blocks
Describe the bug Markdown Code Blocks not working with code.
To Reproduce Steps to reproduce the behavior:
` pc.markdown( ``` python
class MainState(pc.State):
```
),
`
Error:
``` python
^
SyntaxError: invalid syntax
Expected behavior Show in Markdown Code Block
** Specifics (please complete the following information):**
- Python Version: 3.10.9
- Pynecone Version: pynecone 0.1.19
- OS: Windows 10
π
@Meathelix1
I didn't get you.
Could you format your description?
You should pass str(""") to pc.markdown instead of ```.

It works like below:
pc.markdown(
"""
``` python
class MainState(pc.State):
pass
```
"""
),