1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

Libraries: Add LibMarkdown

This commit is contained in:
Sergey Bugaev 2019-09-21 00:46:18 +03:00 committed by Andreas Kling
parent dd5541fefc
commit 2e80b2b32f
17 changed files with 711 additions and 1 deletions

View file

@ -0,0 +1,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 };
};