/* * Copyright (c) 2019-2020, Sergey Bugaev * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Markdown { class Document final { public: String render_to_html() const; String render_to_inline_html() const; String render_for_terminal(size_t view_width = 0) const; static OwnPtr parse(const StringView&); private: NonnullOwnPtrVector m_blocks; }; }