initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "InlineNode.h"
|
||||
|
||||
struct Bold : public InlineNode {
|
||||
std::vector<std::unique_ptr<InlineNode>> children;
|
||||
|
||||
NodeKind getKind() const {
|
||||
return NodeKind::Bold;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "InlineNode.h"
|
||||
|
||||
struct InlineCode : public InlineNode {
|
||||
std::string inlineCodeString;
|
||||
|
||||
NodeKind getKind() const {
|
||||
return NodeKind::InlineCode;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Node.h"
|
||||
|
||||
struct InlineNode : public Node {
|
||||
virtual ~InlineNode() = default;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "InlineNode.h"
|
||||
|
||||
struct Italic : public InlineNode {
|
||||
std::vector<std::unique_ptr<InlineNode>> children;
|
||||
|
||||
NodeKind getKind() const {
|
||||
return NodeKind::Italic;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "InlineNode.h"
|
||||
|
||||
struct Link : public InlineNode {
|
||||
std::string url;
|
||||
std::vector<std::unique_ptr<InlineNode>> children;
|
||||
|
||||
NodeKind getKind() const {
|
||||
return NodeKind::Link;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "InlineNode.h"
|
||||
|
||||
struct Text : public InlineNode {
|
||||
std::string text;
|
||||
|
||||
NodeKind getKind() const {
|
||||
return NodeKind::Text;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user