Markdown
The rx.markdown
component can be used to render markdown text.
It is based on Github Flavored Markdown.
Hello World!
Hello World!
Hello World!
Support us on Github.
Use reflex deploy
to deploy your app with a single command.
Math Equations
You can render math equations using LaTeX.
For inline equations, surround the equation with $
:
Pythagorean theorem: .
Syntax Highlighting
You can render code blocks with syntax highlighting using the ```{language} syntax:
```python import reflex as rx from .pages import index
app = rx.App() app.add_page(index) ```
Tables
You can render tables using the |
syntax:
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Component Map
You can specify which components to use for rendering markdown elements using the
component_map
prop.
Each key in the component_map
prop is a markdown element, and the value is
a function that takes the text of the element as input and returns a Reflex component.
Hello World!
This is a Subheader
And Another Subheader
Here is some code
:
```python import reflex as rx
component = rx.text("Hello World!") ```
And then some more text here, followed by a link to Reflex.