summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/MDBlock.h
blob: e1c1bfc7b13a1c6e3a18ecf1592308ea64c8c96c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <AK/String.h>

class MDBlock {
public:
    virtual ~MDBlock() {}

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