summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibMarkdown/HorizontalRule.cpp')
-rw-r--r--Userland/Libraries/LibMarkdown/HorizontalRule.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibMarkdown/HorizontalRule.cpp b/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
index 5d884df3db..2e696143ed 100644
--- a/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
+++ b/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
@@ -7,6 +7,7 @@
#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <LibMarkdown/HorizontalRule.h>
+#include <LibMarkdown/Visitor.h>
namespace Markdown {
@@ -24,6 +25,15 @@ String HorizontalRule::render_for_terminal(size_t view_width) const
return builder.to_string();
}
+RecursionDecision HorizontalRule::walk(Visitor& visitor) const
+{
+ RecursionDecision rd = visitor.visit(*this);
+ if (rd != RecursionDecision::Recurse)
+ return rd;
+ // Normalize return value.
+ return RecursionDecision::Continue;
+}
+
OwnPtr<HorizontalRule> HorizontalRule::parse(LineIterator& lines)
{
if (lines.is_end())