Markdown
Renders markdown text
@solara.component
def Markdown(md_text: str, unsafe_solara_execute=False, style: Union[str, Dict, None] = None):
...
Renders markdown using https://python-markdown.github.io/
Arguments
md_text
: The markdown text to renderunsafe_solara_execute
: If True, code marked with language "solara" will be executed. This is potentially unsafe if the markdown text can come from user input and should only be used for trusted markdown.style
: A string or dict of css styles to apply to the rendered markdown.
Example
Input text
Renders like
Large
Smaller
List items
* item 1
* item 2
Code highlight support
code = "formatted" and "supports highlighting"
Mermaid support!
See Mermaid docs