mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
LibMarkdown: Implement introspection of the document tree
This commit is contained in:
parent
aca01932bd
commit
24e7196158
23 changed files with 319 additions and 0 deletions
|
@ -6,8 +6,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/RecursionDecision.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibMarkdown/Forward.h>
|
||||
|
||||
namespace Markdown {
|
||||
|
||||
|
@ -17,6 +19,7 @@ public:
|
|||
|
||||
virtual String render_to_html(bool tight = false) const = 0;
|
||||
virtual String render_for_terminal(size_t view_width = 0) const = 0;
|
||||
virtual RecursionDecision walk(Visitor&) const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue