

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Split Delimiter
incomplete
2: Regex
incomplete
3: Extract Links
incomplete
4: Split Images and Links
incomplete
5: Text to TextNodes
incomplete
This lesson's interactive features are locked, please to keep using them
Time to put all the "splitting" functions together into a function that can convert a raw string of markdown-flavored text into a list of TextNode objects.
This is **text** with an _italic_ word and a `code block` and an  and a [link](https://boot.dev)
It should output this list of nodes:
[
TextNode("This is ", TextType.TEXT),
TextNode("text", TextType.BOLD),
TextNode(" with an ", TextType.TEXT),
TextNode("italic", TextType.ITALIC),
TextNode(" word and a ", TextType.TEXT),
TextNode("code block", TextType.CODE),
TextNode(" and an ", TextType.TEXT),
TextNode("obi wan image", TextType.IMAGE, "https://i.imgur.com/fJRm4Vk.jpeg"),
TextNode(" and a ", TextType.TEXT),
TextNode("link", TextType.LINK, "https://boot.dev"),
]
This function should be quite simple now that you've done all the hard work. Just use all your splitting functions one after the other.
Run and submit the CLI tests from the root of the project.