ascii art blocks
This commit is contained in:
parent
ad70e8dcd8
commit
b85530483a
5 changed files with 417 additions and 17 deletions
15
md_types.py
15
md_types.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue