Markdown
Introduction
The Markdown
widget allows you to easily add and style your text using Markdown syntax. By using Markdown, you can add headings, lists, links, images, and more to enhance the presentation of your text content.
Function signature
Parameters
content
Determine input Markdown
content.
type: str
default value: ""
height
Determine Widget
height.
type: int
default value: 300
show_border
Determine Widget
height.
type: bool
default value: True
widget_id
ID of the widget.
type: str
default value: None
Methods and attributes
Mini App Example
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/text-elements/005_markdown/src/main.py
Import libraries
Init API client
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Initialize Button
widgets, we will use
Button
widgets, we will useInitialize Markdown
widget
Markdown
widgetCreate app layout
Prepare a layout for the app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create app using layout
Create an app object with the layout parameter.
Handle button clicks
Last updated