MarkdownViewV1

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 tb
header = tb.view.MarkdownViewV1('# Some Header:\n---\nSome detailed description')

Parameters description

ParametersTypeDescription
hintOptional[Any]

A hint text.

labelOptional[Any]

A label above the component.

validationOptional[BaseComponent]

Validation rules.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming