toloka.client.project.template_builder.view.MarkdownViewV1
| Source code
MarkdownViewV1( self, content: Optional[Any] = None, *, hint: Optional[Any] = None, label: Optional[Any] = None, validation: Optional[BaseComponent] = None, version: Optional[str] = '1.0.0')
A component for formatting Markdown.
The Markdown content must not contain line breaks. To insert them, place \n
in the text.
Straight quotation marks must be escaped: "
.
For more information, see view.markdown.
Attributes: content: A text with Markdown.
Example: Adding a title and description using Markdown.
import toloka.client.project.template_builder as tbheader = tb.view.MarkdownViewV1('# Some Header:\n---\nSome detailed description')
Parameters | Type | Description |
---|---|---|
hint | Optional[Any] | A hint text. |
label | Optional[Any] | A label above the component. |
validation | Optional[BaseComponent] | Validation rules. |
Last updated: August 28, 2023