Block
Union type in block content node types.
Members
The Block
type has these members:
Admonition
AudioObject
CallBlock
Chat
ChatMessage
ChatMessageGroup
Claim
CodeBlock
CodeChunk
Figure
File
ForBlock
Form
Heading
IfBlock
ImageObject
IncludeBlock
InstructionBlock
List
MathBlock
Paragraph
PromptBlock
QuoteBlock
RawBlock
Section
StyledBlock
SuggestionBlock
Table
ThematicBreak
VideoObject
Walkthrough
Bindings
The Block
type is represented in:
- JSON-LD
- JSON Schema
- Python type
Block
- Rust type
Block
- TypeScript type
Block
Testing
During property-based (a.k.a generative) testing, the variants of the Block
type are generated using the following strategies for each complexity level. Any variant not shown is generated using the default strategy for the corresponding type and complexity level.
Variant | Complexity | Description | Strategy |
---|---|---|---|
Admonition |
Min+ | Do not generate Admonition nodes in block content. |
- |
Low+ | Generate Admonition nodes in block content. |
Default for level | |
AudioObject |
Min+ | Do not generate AudioObject nodes in block content. |
- |
CallBlock |
Min+ | Do not generate CallBlock nodes in block content. |
- |
Low+ | Generate CallBlock nodes in block content. |
Default for level | |
Chat |
Min+ | Do not generate Chat nodes in block content. |
- |
ChatMessage |
Min+ | Do not generate ChatMessage nodes in block content. |
- |
ChatMessageGroup |
Min+ | Do not generate ChatMessageGroup nodes in block content. |
- |
Claim |
Min+ | Do not generate Claim nodes in block content. |
- |
Low+ | Generate Claim nodes in block content. |
Default for level | |
CodeChunk |
Min+ | Do not generate CodeChunk nodes in block content. |
- |
Low+ | Generate CodeChunk nodes in block content. |
Default for level | |
Figure |
Min+ | Do not generate Figure nodes in block content. |
- |
Low+ | Generate Figure nodes in block content. |
Default for level | |
File |
Min+ | Do not generate File nodes in block content. |
- |
ForBlock |
Min+ | Do not generate ForBlock nodes in block content. |
- |
Low+ | Generate ForBlock nodes in block content. |
Default for level | |
Form |
Min+ | Do not generate Form nodes in block content. |
- |
IfBlock |
Min+ | Do not generate IfBlock nodes in block content. |
- |
Low+ | Generate IfBlock nodes in block content. |
Default for level | |
ImageObject |
Min+ | Do not generate ImageObject nodes in block content. |
- |
IncludeBlock |
Min+ | Do not generate IncludeBlock nodes in block content. |
- |
Low+ | Generate IncludeBlock nodes in block content. |
Default for level | |
InstructionBlock |
Min+ | Do not generate InstructionBlock nodes in block content. |
- |
PromptBlock |
Min+ | Do not generate PromptBlock nodes in block content. |
- |
Section |
Min+ | Do not generate Section nodes in block content. |
- |
Low+ | Generate Section nodes in block content. |
Default for level | |
SuggestionBlock |
Min+ | Do not generate SuggestionBlock nodes in block content. |
- |
VideoObject |
Min+ | Do not generate VideoObject nodes in block content. |
- |
Walkthrough |
Min+ | Do not generate Walkthrough nodes in block content. |
- |
Source
This documentation was generated from Block.yaml
by docs_types.rs
.