mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
21 lines
481 B
C++
21 lines
481 B
C++
#pragma once
|
|
|
|
#include <LibMarkdown/MDBlock.h>
|
|
#include <LibMarkdown/MDText.h>
|
|
|
|
class MDCodeBlock final : public MDBlock {
|
|
public:
|
|
virtual ~MDCodeBlock() override {}
|
|
|
|
virtual String render_to_html() const override;
|
|
virtual String render_for_terminal() const override;
|
|
virtual bool parse(Vector<StringView>::ConstIterator& lines) override;
|
|
|
|
private:
|
|
String style_language() const;
|
|
MDText::Style style() const;
|
|
|
|
String m_code;
|
|
MDText m_style_spec;
|
|
};
|