summaryrefslogtreecommitdiff
path: root/Libraries/LibMarkdown/MDParagraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibMarkdown/MDParagraph.h')
-rw-r--r--Libraries/LibMarkdown/MDParagraph.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Libraries/LibMarkdown/MDParagraph.h b/Libraries/LibMarkdown/MDParagraph.h
new file mode 100644
index 0000000000..245ba4f75e
--- /dev/null
+++ b/Libraries/LibMarkdown/MDParagraph.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <LibMarkdown/MDBlock.h>
+#include <LibMarkdown/MDText.h>
+
+class MDParagraph final : public MDBlock {
+public:
+ virtual ~MDParagraph() 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;
+};