#include "inlineNode.h" #include #include #include using std::string; void InlineNode::AddChild(std::unique_ptr child) { throw std::runtime_error("Cannot add a child to an InlineNode."); } string TextNode::ToHtml() const { return this->content; } string ItalicNode::ToHtml() const { return "" + this->content + ""; } string BoldNode::ToHtml() const { return "" + this->content + ""; } string BoldItalicNode::ToHtml() const { return "" + this->content + ""; } string CodeNode::ToHtml() const { return "" + this->content + ""; } string RawTextNode::ToHtml() const { return this->content; };