Define Inline Node
This commit is contained in:
parent
253ed8dfce
commit
4672b81f6a
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"C_Cpp.errorSquiggles": "disabled"
|
||||||
|
}
|
||||||
17
lib/inlindeNode.h
Normal file
17
lib/inlindeNode.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#ifndef INLINENODE_H
|
||||||
|
#define INLINENODE_H
|
||||||
|
#include "node.h"
|
||||||
|
|
||||||
|
class InlineNode : public Node{
|
||||||
|
public:
|
||||||
|
InlineNode(std::string content) : content(content);
|
||||||
|
protected:
|
||||||
|
std::string content;
|
||||||
|
};
|
||||||
|
|
||||||
|
class TextNode : public InlineNode{};
|
||||||
|
class BoldNode : public InlineNode{};
|
||||||
|
class Italic : public InlineNode{};
|
||||||
|
class BoldItalic : public InlineNode{};
|
||||||
|
|
||||||
|
#endif
|
||||||
0
lib/inlineNode.cpp
Normal file
0
lib/inlineNode.cpp
Normal file
Loading…
x
Reference in New Issue
Block a user