aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ricochet/render/renderer.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ricochet/render/renderer.hh b/include/ricochet/render/renderer.hh
index f26a788..2a9acae 100644
--- a/include/ricochet/render/renderer.hh
+++ b/include/ricochet/render/renderer.hh
@@ -22,6 +22,12 @@
namespace ricochet::render {
+struct RenderResult
+{
+ std::string text {};
+ std::vector<std::string> links {};
+};
+
class Renderer
{
public:
@@ -37,7 +43,7 @@ public:
* @brief Traverse the DOM tree and output the formatted result to the terminal using ANSI escape codes
* @param node The root node of the DOM tree
*/
- std::string render( const parser::DomNode& node ) const;
+ RenderResult render( const parser::DomNode& node ) const;
};
} // namespace ricochet::render \ No newline at end of file