Skip to content

Section

Handsdown API Index / Handsdown / Processors / Section

Auto-generated documentation for handsdown.processors.section module.

Section

Show source in section.py:9

Section in a SectionMap.

Arguments

  • title - Section title.
  • blocks - List of line blocks.

Signature

class Section:
    def __init__(self, title: str, blocks: Iterable[SectionBlock]) -> None:
        ...

See also

Section().iterate_blocks

Show source in section.py:35

Iterate over all non-empty Section block lines.

Returns

Section block lines.

Signature

def iterate_blocks(self) -> Iterable[SectionBlock]:
    ...

See also

Section().render

Show source in section.py:22

Render all Section block lines.

Returns

Section lines as a text.

Signature

def render(self) -> str:
    ...