Skip to content

heading_block

django_spire.knowledge.entry.version.block.blocks.heading_block

HeadingBlock

Bases: BaseBlock

value instance-attribute

type = BlockTypeChoices.HEADING class-attribute instance-attribute

detail_template = 'django_spire/knowledge/entry/version/block/detail/component/heading_component.html' class-attribute instance-attribute

update_template = 'django_spire/knowledge/entry/version/block/update/component/heading_component.html' class-attribute instance-attribute

render_to_text

Source code in django_spire/knowledge/entry/version/block/blocks/heading_block.py
def render_to_text(self) -> str:
    return f'{self.value}\n'