/* * Copyright (c) 2019-2020, Sergey Bugaev * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace Markdown { String Paragraph::render_to_html() const { StringBuilder builder; builder.append("

"); builder.append(m_text.render_to_html()); builder.append("

\n"); return builder.build(); } String Paragraph::render_for_terminal(size_t) const { StringBuilder builder; builder.append(m_text.render_for_terminal()); builder.append("\n\n"); return builder.build(); } }