/* * Copyright (c) 2019-2020, Sergey Bugaev * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Markdown { class Document final { public: Document(OwnPtr container) : m_container(move(container)) { } 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: OwnPtr m_container; }; }