ascii art blocks

This commit is contained in:
randogoth 2025-10-20 14:14:07 +03:00
parent ad70e8dcd8
commit b85530483a
5 changed files with 417 additions and 17 deletions

View file

@ -13,6 +13,7 @@ class BlockKind(Enum):
LIST_ITEM = "list_item"
HORIZONTAL_RULE = "horizontal_rule"
BLANK_LINE = "blank_line"
CUSTOM_BLOCK = "custom_block"
@dataclass
@ -80,6 +81,20 @@ class ListItemPayload:
ordered: bool
@dataclass
class AsciiArtPiece:
block_type: str
name: str
path: str
lines: List[str]
align: Optional[str] = None
@dataclass
class AsciiArtPayload:
pieces: List[AsciiArtPiece]
@dataclass
class BlockEvent:
kind: BlockKind