aboutsummaryrefslogtreecommitdiff
path: root/ricochet/include
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-12 04:22:01 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-12 04:22:01 +0800
commite81d870756bccbb2b5da52673d52a6bfd93f7b3d (patch)
tree3a7ce287b0bda562374b2a77969ee4c0ec51d99a /ricochet/include
parent3fbda8903b809e50a8e96acd66b2b80b54e1b6bf (diff)
downloadrcc-project-e81d870756bccbb2b5da52673d52a6bfd93f7b3d.tar.gz
rcc-project-e81d870756bccbb2b5da52673d52a6bfd93f7b3d.tar.xz
feat: implement link extraction and interactive navigation via numbered tags in the browser
Diffstat (limited to 'ricochet/include')
-rw-r--r--ricochet/include/ricochet/render/renderer.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ricochet/include/ricochet/render/renderer.hh b/ricochet/include/ricochet/render/renderer.hh
index f26a788..2a9acae 100644
--- a/ricochet/include/ricochet/render/renderer.hh
+++ b/ricochet/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