mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
LibMarkdown: Add method to get access to Table columns
This will be used later when parsing the AvailablePorts.md file in the upcoming package manager application.
This commit is contained in:
parent
fcc3497803
commit
8073c615af
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ public:
|
||||||
virtual RecursionDecision walk(Visitor&) const override;
|
virtual RecursionDecision walk(Visitor&) const override;
|
||||||
static OwnPtr<Table> parse(LineIterator& lines);
|
static OwnPtr<Table> parse(LineIterator& lines);
|
||||||
|
|
||||||
|
Vector<Column> const& columns() const { return m_columns; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Vector<Column> m_columns;
|
Vector<Column> m_columns;
|
||||||
size_t m_total_width { 1 };
|
size_t m_total_width { 1 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue