summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/MDHeading.h
blob: 67fff18689f7558dd740c5142d595627f2d2f117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <AK/StringView.h>
#include <AK/Vector.h>
#include <LibMarkdown/MDBlock.h>
#include <LibMarkdown/MDText.h>

class MDHeading final : public MDBlock {
public:
    virtual ~MDHeading() override {}

    virtual String render_to_html() const override;
    virtual String render_for_terminal() const override;
    virtual bool parse(Vector<StringView>::ConstIterator& lines) override;

private:
    MDText m_text;
    int m_level { -1 };
};