added text types

This commit is contained in:
John O'Keefe 2024-03-18 19:36:47 -04:00
parent 8b8cd3bee0
commit aed4659a06

View File

@ -1,3 +1,10 @@
text_type_text = "text"
text_type_bold = "bold"
text_type_italic = "italic"
text_type_code = "code"
text_type_link = "link"
text_type_image = "image"
class TextNode:
def __init__(self, text, text_type, url=None) -> None:
self.text = text