blob: c1e58dc9bbc32478bcb59b12a1e3bd40b4cc328a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <AK/Vector.h>
#include <LibMarkdown/MDBlock.h>
#include <LibMarkdown/MDText.h>
class MDList final : public MDBlock {
public:
virtual ~MDList() override {}
virtual String render_to_html() const override;
virtual String render_for_terminal() const override;
virtual bool parse(Vector<StringView>::ConstIterator& lines) override;
private:
// TODO: List items should be considered blocks of their own kind.
Vector<MDText> m_items;
bool m_is_ordered { false };
};
|