mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Libraries: Add LibMarkdown
This commit is contained in:
parent
dd5541fefc
commit
2e80b2b32f
17 changed files with 711 additions and 1 deletions
12
Libraries/LibMarkdown/MDBlock.h
Normal file
12
Libraries/LibMarkdown/MDBlock.h
Normal file
|
@ -0,0 +1,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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue