Coverage Report

Created: 2026-05-16 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibMarkdown/Paragraph.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
3
 * Copyright (c) 2022, the SerenityOS developers.
4
 *
5
 * SPDX-License-Identifier: BSD-2-Clause
6
 */
7
8
#pragma once
9
10
#include <AK/OwnPtr.h>
11
#include <LibMarkdown/Block.h>
12
#include <LibMarkdown/Text.h>
13
14
namespace Markdown {
15
16
class Paragraph final : public Block {
17
public:
18
    Paragraph(Text text)
19
3.51M
        : m_text(move(text))
20
3.51M
    {
21
3.51M
    }
22
23
3.51M
    virtual ~Paragraph() override = default;
24
25
    virtual ByteString render_to_html(bool tight = false) const override;
26
    virtual Vector<ByteString> render_lines_for_terminal(size_t view_width = 0) const override;
27
    virtual RecursionDecision walk(Visitor&) const override;
28
29
private:
30
    Text m_text;
31
};
32
33
}