#pragma once #include "ast/InlineNode/InlineNode.h" #include "utils/shorten.hpp" struct Link : public InlineNode { std::string url; std::vector> children; NodeKind getKind() const override { return NodeKind::Link; } void repr(std::ostream &os, int indent) const override { os << getIndent(indent) << toString(this->getKind()) << " link: " << shorten(this->url) << '\n'; for (const std::unique_ptr &child : this->children) { child->repr(os, indent + 1); } } };