initial commit

This commit is contained in:
2026-05-14 01:49:48 +03:00
commit 208d34864e
15 changed files with 172 additions and 0 deletions
+11
View File
@@ -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;
}
};
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include "InlineNode.h"
struct InlineCode : public InlineNode {
std::string inlineCodeString;
NodeKind getKind() const {
return NodeKind::InlineCode;
}
};
+7
View File
@@ -0,0 +1,7 @@
#pragma once
#include "Node.h"
struct InlineNode : public Node {
virtual ~InlineNode() = default;
};
+11
View File
@@ -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;
}
};
+12
View File
@@ -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;
}
};
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include "InlineNode.h"
struct Text : public InlineNode {
std::string text;
NodeKind getKind() const {
return NodeKind::Text;
}
};