added text types
This commit is contained in:
parent
8b8cd3bee0
commit
aed4659a06
@ -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:
|
class TextNode:
|
||||||
def __init__(self, text, text_type, url=None) -> None:
|
def __init__(self, text, text_type, url=None) -> None:
|
||||||
self.text = text
|
self.text = text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user