yera.events.blocks.markdown

Markdown block implementation.

Symbols

class MarkdownStream — Stream handle for creating multiple chunks of the same markdown block.

MarkdownStream

Inherits: _StreamHandle

Stream handle for creating multiple chunks of the same markdown block.

Methods

append — Append a new chunk to this markdown block.
new_line — Append a new line to this markdown block.

MarkdownStream.__enter__

__enter__()

MarkdownStream.__exit__

__exit__(
    exc_type: type[BaseException],
    exc_value: BaseException | None,
    traceback: TracebackType,
)

MarkdownStream.append

append(
    content: str,
) → None

Append a new chunk to this markdown block.

MarkdownStream.new_line

new_line(
    content: str,
) → None

Append a new line to this markdown block.