mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:27: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
|
@ -27,6 +27,8 @@ public:
|
|||
Vector<Text> rows;
|
||||
Alignment alignment { Alignment::Left };
|
||||
size_t relative_width { 0 };
|
||||
|
||||
RecursionDecision walk(Visitor&) const;
|
||||
};
|
||||
|
||||
Table() { }
|
||||
|
@ -34,6 +36,7 @@ public:
|
|||
|
||||
virtual String render_to_html(bool tight = false) const override;
|
||||
virtual String render_for_terminal(size_t view_width = 0) const override;
|
||||
virtual RecursionDecision walk(Visitor&) const override;
|
||||
static OwnPtr<Table> parse(LineIterator& lines);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue